def test_delete_group(self): """Deletes a group.""" self.client.execute.return_value = defer.succeed(None) d = cass.delete_group(self.client, '101010', 'group-abc') self.successResultOf(d) self.client.execute.assert_called_once_with( 'DELETE FROM groups WHERE "groupId"=:groupId AND "tenantId"=:tenantId;', {'groupId': 'group-abc', 'tenantId': '101010'}, 1)
def test_delete_group(self): """Deletes a group.""" self.client.execute.return_value = defer.succeed(None) d = cass.delete_group(self.client, '101010', 'group-abc') self.successResultOf(d) self.client.execute.assert_called_once_with( 'DELETE FROM groups WHERE "groupId"=:groupId AND "tenantId"=:tenantId;', { 'groupId': 'group-abc', 'tenantId': '101010' }, 1)
def delete_group_from_db(_): return cass.delete_group(self._db, tenant_id, group_id)