def test_firstname_no_lastname(self): person = PersonFactory(name="Margrethe") self.assertEqual(person.firstname(), "Margrethe")
def test_firstname_no_lastname(self): person = PersonFactory(name="Margrethe") self.assertEqual(person.firstname(), "Margrethe")
def test_firstname_allows_dash_in_names(self): person = PersonFactory(name="Hans-Christian Jensen Eriksen") self.assertEqual(person.firstname(), "Hans-Christian")
def test_firstname_allows_dash_in_names(self): person = PersonFactory(name="Hans-Christian Jensen Eriksen") self.assertEqual(person.firstname(), "Hans-Christian")