Esempio n. 1
0
def test_copy():
    w1 = World(["dog"])
    w1.set_position("dog", 1, 1)
    w2 = w1.copy()
    assert w1 is not w2  # not the same object
    assert str(w1) == str(w2)  # but identical contents