def test_changingFromMailToName(self): p = Person(email=self.email) p.name = self.name p.email = None assert p.name == self.name assert p.email is None
def test_changingFromNameToMail(self): p = Person(name=self.name) p.email = self.email p.name = None assert p.email == self.email assert p.name is None