def test_assignment_to_full_name(self): hn = HumanName("John A. Kenneth Doe, Jr.") self.m(hn.first,"John", hn) self.m(hn.last,"Doe", hn) self.m(hn.middle,"A. Kenneth", hn) self.m(hn.suffix,"Jr.", hn) hn.full_name = "Juan Velasquez y Garcia III" self.m(hn.first,"Juan", hn) self.m(hn.last,"Velasquez y Garcia", hn) self.m(hn.suffix,"III", hn)
def test_assignment_to_full_name(self): hn = HumanName("John A. Kenneth Doe, Jr.") assert hn.first == "John" assert hn.last == "Doe" assert hn.middle == "A. Kenneth" assert hn.suffix == "Jr." hn.full_name = "Juan Velasquez y Garcia III" assert hn.first == "Juan" assert hn.last == "Velasquez y Garcia" assert hn.suffix == "III"