We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69468b4 commit 8d45a32Copy full SHA for 8d45a32
tests.py
@@ -1265,10 +1265,13 @@ def test_empty_attribute_default(self):
1265
from nameparser.config import CONSTANTS
1266
_orig = CONSTANTS.empty_attribute_default
1267
CONSTANTS.empty_attribute_default = None
1268
- hn = HumanName("Benjamin Franklin")
1269
- self.m(hn.first,"Benjamin", hn)
1270
- self.m(hn.middle,None, hn)
1271
- self.m(hn.last,"Franklin", hn)
+ hn = HumanName("")
+ self.m(hn.title, None, hn)
+ self.m(hn.first, None, hn)
+ self.m(hn.middle, None, hn)
1272
+ self.m(hn.last, None, hn)
1273
+ self.m(hn.suffix, None, hn)
1274
+ self.m(hn.nickname, None, hn)
1275
CONSTANTS.empty_attribute_default = _orig
1276
1277
0 commit comments