@@ -9,16 +9,16 @@ def setup_module():
9
9
def test_sanitize_email ():
10
10
assert user .sanitize_email (None ) is None
11
11
assert user .sanitize_email ('' ) == ''
12
- assert user .sanitize_email ('test@example.com ' ) == (
13
- 'zoe.burke@xce13103b.sanitized.net ' )
14
- assert user .sanitize_email ('test2@example.com ' ) == (
15
- 'Melanie.Pratt@x4feb7f40.sanitized.net ' )
16
- assert user .sanitize_email ('test@example.com ' ) == (
17
- 'zoe.burke@xce13103b.sanitized.net ' )
18
- assert user .sanitize_email ('test3@example.com ' ) == (
19
- 'irene.archer@x3d2e92ec.sanitized.net ' )
20
- assert user .sanitize_email (' test3@example.com ' ) == (
21
- 'irene.archer@x3d2e92ec.sanitized.net ' )
12
+ assert user .sanitize_email ('test< @example.net ' ) == (
13
+ 'zoe.burke@xce13103b.san.example.com ' )
14
+ assert user .sanitize_email ('test2@example.net ' ) == (
15
+ 'Melanie.Pratt@x4feb7f40.san.example.com ' )
16
+ assert user .sanitize_email ('test@example.net ' ) == (
17
+ 'zoe.burke@xce13103b.san.example.com ' )
18
+ assert user .sanitize_email ('test3@example.net ' ) == (
19
+ 'irene.archer@x3d2e92ec.san.example.com ' )
20
+ assert user .sanitize_email (' test3@example.net ' ) == (
21
+ 'irene.archer@x3d2e92ec.san.example.com ' )
22
22
23
23
24
24
def test_sanitize_username ():
@@ -59,9 +59,9 @@ def test_sanitize_surname_en_gb():
59
59
60
60
61
61
def test_sanitize_email_resets_on_session_reset ():
62
- assert user .sanitize_email ('test@example.com ' ) == (
63
- 'zoe.burke@xce13103b.sanitized.net ' )
62
+ assert user .sanitize_email ('test@example.net ' ) == (
63
+ 'zoe.burke@xce13103b.san.example.com ' )
64
64
session .reset ()
65
- assert user .sanitize_email ('test@example.com ' ) != (
66
- 'zoe.burke@xce13103b.sanitized.net ' )
65
+ assert user .sanitize_email ('test@example.net ' ) != (
66
+ 'zoe.burke@xce13103b.san.example.com ' )
67
67
session .reset (b'not-so-secret-key' )
0 commit comments