'Test that delete_objects calls to underlying db_api.'

def test_delete_objects(self):

    with mock.patch.object(obj_db_api, 'delete_objects', return_value=0) as delete_objects_mock:
        self.assertEqual(0, self._test_class.delete_objects(self.context))
    delete_objects_mock.assert_any_call(self.context, self._test_class.db_model)
