def test__Task_eq(): A = Task("test.py", "test-env") B = Task("test.py", "test-env") assert A == B A.loc = "new-test.py" assert A != B
def test__Task_hash(): A = Task("test.py", "test-env") B = Task("test.py", "test-env") assert hash(A) == hash(B) A.loc = "new-test.py" assert hash(A) != hash(B)