|
10 | 10 | dill = False # type: ignore[assignment] |
11 | 11 |
|
12 | 12 | from nameparser import HumanName |
13 | | -from nameparser.config import Constants, TupleManager |
| 13 | +from nameparser.config import CONSTANTS, Constants, TupleManager |
14 | 14 |
|
15 | 15 | from tests.base import HumanNameTestBase |
16 | 16 |
|
@@ -96,7 +96,7 @@ def test_comparison(self) -> None: |
96 | 96 | hn1 = HumanName("Doe-Ray, Dr. John P., CLU, CFP, LUTC") |
97 | 97 | hn2 = HumanName("Dr. John P. Doe-Ray, CLU, CFP, LUTC") |
98 | 98 | self.assertTrue(hn1 == hn2) |
99 | | - self.assertTrue(hn1 is not hn2) |
| 99 | + self.assertIsNot(hn1, hn2) |
100 | 100 | self.assertTrue(hn1 == "Dr. John P. Doe-Ray CLU, CFP, LUTC") |
101 | 101 | hn1 = HumanName("Doe, Dr. John P., CLU, CFP, LUTC") |
102 | 102 | hn2 = HumanName("Dr. John P. Doe-Ray, CLU, CFP, LUTC") |
@@ -156,7 +156,7 @@ def test_comparison_case_insensitive(self) -> None: |
156 | 156 | hn1 = HumanName("Doe-Ray, Dr. John P., CLU, CFP, LUTC") |
157 | 157 | hn2 = HumanName("dr. john p. doe-Ray, CLU, CFP, LUTC") |
158 | 158 | self.assertTrue(hn1 == hn2) |
159 | | - self.assertTrue(hn1 is not hn2) |
| 159 | + self.assertIsNot(hn1, hn2) |
160 | 160 | self.assertTrue(hn1 == "Dr. John P. Doe-ray clu, CFP, LUTC") |
161 | 161 |
|
162 | 162 | def test_slice(self) -> None: |
@@ -222,7 +222,7 @@ def test_is_conjunction_with_list(self) -> None: |
222 | 222 | def test_override_constants(self) -> None: |
223 | 223 | C = Constants() |
224 | 224 | hn = HumanName(constants=C) |
225 | | - self.assertTrue(hn.C is C) |
| 225 | + self.assertIs(hn.C, C) |
226 | 226 |
|
227 | 227 | def test_override_regex(self) -> None: |
228 | 228 | var = TupleManager([("spaces", re.compile(r"\s+", re.U)),]) |
|
0 commit comments