Skip to content

Commit a9196db

Browse files
Update test_phone_number_lookup.py
1 parent 3d03d9b commit a9196db

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

test/integration/test_phone_number_lookup.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,6 @@ def validateResult(self, result: LookupResult, e_164_format: str, line_provider:
4747
e_164_format (str): Phone number in e164 format ex: +19195551234
4848
line_provider (str): Line service provider ex: Verizon
4949
"""
50-
self.assertEqual(result.response_code, 0)
51-
self.assertIs(type(result.message), str)
52-
self.assertEqual(result.e_164_format, e_164_format)
53-
self.assertIs(type(result.formatted), str)
54-
self.assertTrue(result.country == "US" or result.country == "Canada")
55-
self.assertTrue(result.line_type == "Mobile" or result.line_type == "Fixed")
56-
self.assertIn(line_provider, result.line_provider)
5750

5851
# if result has 1 of these attributes it should have the other
5952
if result.get('mobile_country_code') or result.get('mobile_network_code'):
@@ -64,7 +57,7 @@ def validateResult(self, result: LookupResult, e_164_format: str, line_provider:
6457
assert_that(result, has_properties(
6558
'response_code', 0,
6659
'e_164_format', e_164_format,
67-
'line_provider', line_provider,
60+
'line_provider', contains_string(line_provider),
6861
'country', is_one_of_string(["US", "Canada"]),
6962
'line_type', is_one_of_string(["Mobile", "Fixed"])
7063
)

0 commit comments

Comments
 (0)