def test_delete_without_pk(self):
        with client.test_mode as t:
            t.register_json('/foo/?name=bar', {'count': 1, 'results': [
                {'id': 42, 'name': 'bar', 'description': 'baz'},
            ], 'next': None, 'previous': None})
            t.register('/foo/42/', '', method='DELETE')
            result = self.res.delete(name='bar')
            self.assertEqual(len(t.requests), 2)
            self.assertTrue(t.requests[1].url.endswith('/foo/42/'))
        self.assertTrue(result['changed'])
Establish that calling `delete` with keyword arguments works
dataset/ETHPy150Open ansible/tower-cli/tests/test_models_base.py/ResourceTests.test_delete_without_pk