File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -363,8 +363,8 @@ def is_an_initial(self, value):
363
363
364
364
@property
365
365
def full_name (self ):
366
- """The name string to be parsed ."""
367
- return self ._full_name
366
+ """The string output of the HumanName instance ."""
367
+ return self .__str__ ()
368
368
369
369
@full_name .setter
370
370
def full_name (self , value ):
Original file line number Diff line number Diff line change @@ -111,6 +111,12 @@ def test_assignment_to_full_name(self):
111
111
self .m (hn .last , "Velasquez y Garcia" , hn )
112
112
self .m (hn .suffix , "III" , hn )
113
113
114
+ def test_get_full_name_attribute_references_internal_lists (self ):
115
+ hn = HumanName ("John Williams" )
116
+ hn .first_list = ["Larry" ]
117
+ self .m (hn .full_name , "Larry Williams" , hn )
118
+
119
+
114
120
def test_assignment_to_attribute (self ):
115
121
hn = HumanName ("John A. Kenneth Doe, Jr." )
116
122
hn .last = "de la Vega"
You can’t perform that action at this time.
0 commit comments