def test_tick(): vc1 = VectorClock() vc2 = vc1.tick(1) assert_not_equal(vc1[1], vc2[1]) assert_equal(vc2[1], 1) assert_equal(vc2[2], 0) vc3 = vc2.tick(1) assert_equal(vc3[1], 2)