From b7d59bdd8581b322a138798b0e106404ad121863 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Sat, 23 Jul 2022 10:44:44 -0700 Subject: [PATCH] update tests for new email-address schema --- tests/test_email_address.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_email_address.py b/tests/test_email_address.py index e8487d1f..5ecd42bf 100644 --- a/tests/test_email_address.py +++ b/tests/test_email_address.py @@ -16,7 +16,7 @@ class MyTests(unittest.TestCase): Test simple email address """ data = r'fred@example.com' - expected = json.loads(r'''{"domain":"example.com","local":"fred","local_plus_prefix":null,"local_plus_suffix":null}''') + expected = json.loads(r'''{"username":"fred","domain":"example.com","local":"fred","local_plus_suffix":null}''') self.assertEqual(jc.parsers.email_address.parse(data, quiet=True), expected) @@ -25,7 +25,7 @@ class MyTests(unittest.TestCase): Test email address with plus syntax """ data = r'fred+spam@example.com' - expected = json.loads(r'''{"domain":"example.com","local":"fred+spam","local_plus_prefix":"fred","local_plus_suffix":"spam"}''') + expected = json.loads(r'''{"username":"fred","domain":"example.com","local":"fred+spam","local_plus_suffix":"spam"}''') self.assertEqual(jc.parsers.email_address.parse(data, quiet=True), expected)