Skip to content

Commit 8d45a32

Browse files
committed
include each attribute in test
1 parent 69468b4 commit 8d45a32

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tests.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,10 +1265,13 @@ def test_empty_attribute_default(self):
12651265
from nameparser.config import CONSTANTS
12661266
_orig = CONSTANTS.empty_attribute_default
12671267
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)
1268+
hn = HumanName("")
1269+
self.m(hn.title, None, hn)
1270+
self.m(hn.first, None, hn)
1271+
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)
12721275
CONSTANTS.empty_attribute_default = _orig
12731276

12741277

0 commit comments

Comments
 (0)