Skip to content

Commit 4258ea1

Browse files
Update test_phone_number_lookup.py
1 parent 9ba58d0 commit 4258ea1

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

test/integration/test_phone_number_lookup.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -60,21 +60,6 @@ def validateResult(self, result: LookupResult, e_164_format: str, line_provider:
6060
self.assertIs(type(result.mobile_country_code), str)
6161
self.assertIs(type(result.mobile_network_code), str)
6262

63-
# using hamcrest assertions
64-
assert_that(result, has_properties(
65-
'response_code', 0,
66-
'e_164_format', e_164_format,
67-
'line_provider', line_provider)
68-
)
69-
70-
assert_that(result.country, any_of(equal_to("US"), equal_to("Canada")))
71-
assert_that(result.line_type, any_of(equal_to("Mobile"), equal_to("Fixed")))
72-
73-
# custom matcher
74-
assert_that(result.country, is_one_of_string(["US", "Canada"]))
75-
assert_that(result.line_type, is_one_of_string(["Mobile", "Fixed"]))
76-
77-
7863
# this can further simplify overall assertions with single one
7964
assert_that(result, has_properties(
8065
'response_code', 0,

0 commit comments

Comments
 (0)