def test_director_methods(): director1 = Director("Taika Waititi") assert repr(director1) == "<Director Taika Waititi>" director2 = Director("Cameron Lee") director3 = Director(42) assert director3.director_full_name is None director5 = Director("") assert director5.director_full_name is None director4 = Director("Taika Waititi") assert director4.__eq__(director1) == True assert director4.__lt__(director1) == False assert director4.__lt__(director2) == False assert director2.__lt__(director4) == True assert hash(director4) == hash(director1)
def test_director_false_eq_function(): director1 = Director("Taika Waititi") director2 = Director(" ") assert director1.__eq__(director2) is False