def test_binding_event(self): self._servicier.OnBindingEvent( appcallback_v1.BindingEventRequest(name='binding1'), self.fake_context, ) self._binding1_method.assert_called_once()
def test_non_registered_binding(self): with self.assertRaises(NotImplementedError): self._servicier.OnBindingEvent( appcallback_v1.BindingEventRequest(name='binding3'), self.fake_context, )