예제 #1
0
 def test_freeze(self):
     l = actions.PauseAt("r", 5)
     assert l.freeze({}).spec() == l.spec()
예제 #2
0
def test_unique_name():
    assert not actions.PauseAt(0, "f").unique_name
    assert actions.DisconnectAt(0).unique_name
예제 #3
0
 def test_spec(self):
     assert actions.PauseAt("r", 5).spec() == "pr,5"
     assert actions.PauseAt(0, 5).spec() == "p0,5"
     assert actions.PauseAt(0, "f").spec() == "p0,f"