def test_receiver_delete(self): res = self._create_receiver(self.ctx) receiver_id = res.id receiver = db_api.receiver_get(self.ctx, receiver_id) self.assertIsNotNone(receiver) db_api.receiver_delete(self.ctx, receiver_id) res = db_api.receiver_get(self.ctx, receiver_id) self.assertIsNone(res)
def test_receiver_delete_not_found(self): receiver_id = 'BogusWebhookID' res = db_api.receiver_delete(self.ctx, receiver_id) self.assertIsNone(res) res = db_api.receiver_get(self.ctx, receiver_id) self.assertIsNone(res)