Esempio n. 1
0
 def test_stop(self):
     x = Autoreloader(Mock(), modules=[__name__])
     x._monitor = None
     x.stop()
     x._monitor = Mock()
     x.stop()
     x._monitor.stop.assert_called_with()
Esempio n. 2
0
 def test_stop(self):
     x = Autoreloader(Mock(), modules=[__name__])
     x._monitor = None
     x.stop()
     x._monitor = Mock()
     x.stop()
     x._monitor.stop.assert_called_with()