Beispiel #1
0
    def test_supports_Timer_interface(self):
        x = Timer()
        x.stop()

        tref = Mock()
        x.cancel(tref)
        tref.cancel.assert_called_with()

        assert x.schedule is x
Beispiel #2
0
    def test_supports_Timer_interface(self):
        x = Timer()
        x.stop()

        tref = Mock()
        x.cancel(tref)
        tref.cancel.assert_called_with()

        assert x.schedule is x
Beispiel #3
0
 def test_cancel(self):
     t = Timer()
     tref = Mock()
     t.cancel(tref)
     tref.cancel.assert_called_with()
Beispiel #4
0
 def test_cancel(self):
     t = Timer()
     tref = Mock()
     t.cancel(tref)
     tref.cancel.assert_called_with()