def test_start_stop_on_change(self): x = BaseMonitor(['a', 'b']) with self.assertRaises(NotImplementedError): x.start() x.stop() x.on_change([]) x._on_change = Mock() x.on_change('foo') x._on_change.assert_called_with('foo')
def test_start_stop_on_change(self): x = BaseMonitor(["a", "b"]) with self.assertRaises(NotImplementedError): x.start() x.stop() x.on_change([]) x._on_change = Mock() x.on_change("foo") x._on_change.assert_called_with("foo")