コード例 #1
0
 def test_instant_interval_interval(self):
     a = ac.IntervalAction()
     a.duration = 3.0
     b = ac.InstantAction()
     res = b + a
     assert isinstance(res, ac.IntervalAction)
     assert not isinstance(res, ac.InstantAction)
コード例 #2
0
 def test_instant_instant_instant(self):
     a = ac.InstantAction()
     b = ac.InstantAction()
     res = a + b
     assert isinstance(res, ac.InstantAction)
コード例 #3
0
 def test_instant_action_action(self):
     a = ac.Action()
     b = ac.InstantAction()
     res = b + a
     assert isinstance(res, ac.Action)
     assert not isinstance(res, ac.IntervalAction)