def test_add_animal(): exp = Experiment() exp.add_animal("dog") exp.add_animal("cat") assert exp.animals == ["dog", "cat"] exp.add_animal("frog") exp.add_animal("cat") assert exp.animals == ["dog", "cat", "frog"]
def test_add_animal(): exp = Experiment() exp.add_animal("dog") exp.add_animal("cat") assert exp.animals == ["dog", "cat"] exp.add_animal("frog") exp.add_animal("cat") assert exp.animals == ["dog", "cat", "frog"]