Example #1
0
 def test_register_with_event_loop(self):
     hub = Mock(name='hub')
     x = StatMonitor(['a'])
     x.register_with_event_loop(hub)
     hub.call_repeatedly.assert_called_with(2.0, x.find_changes)
Example #2
0
 def test_register_with_event_loop(self):
     hub = Mock(name='hub')
     x = StatMonitor(['a'])
     x.register_with_event_loop(hub)
     hub.call_repeatedly.assert_called_with(2.0, x.find_changes)