def test_unknown(self):
        event = {'type': 'UNKNOWN'}
        handler = h_k8s.ResourceEventHandler()

        handler(event)

        self.assertTrue(True)
    def test_deleted(self, m_deleted):
        obj = mock.sentinel.obj
        event = {'type': 'DELETED', 'object': obj}
        handler = h_k8s.ResourceEventHandler()

        handler(event)

        m_deleted.assert_called_once_with(obj)
    def test_modified(self, m_modified, m_present):
        obj = mock.sentinel.obj
        event = {'type': 'MODIFIED', 'object': obj}
        handler = h_k8s.ResourceEventHandler()

        handler(event)

        m_modified.assert_called_once_with(obj)
        m_present.assert_called_once_with(obj)