Esempio n. 1
0
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
Esempio n. 2
0
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)