Пример #1
0
    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)
Пример #2
0
    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)
Пример #3
0
 def delete_group_from_db(_):
     return cass.delete_group(self._db, tenant_id, group_id)
Пример #4
0
 def delete_group_from_db(_):
     return cass.delete_group(self._db, tenant_id, group_id)