summaryrefslogtreecommitdiff
path: root/gitlab/tests/test_mixins.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/tests/test_mixins.py')
-rw-r--r--gitlab/tests/test_mixins.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/gitlab/tests/test_mixins.py b/gitlab/tests/test_mixins.py
index 5c10597..c737953 100644
--- a/gitlab/tests/test_mixins.py
+++ b/gitlab/tests/test_mixins.py
@@ -238,26 +238,6 @@ class TestMixinMethods(unittest.TestCase):
self.assertEqual(obj.foo, 'bar')
self.assertRaises(StopIteration, obj_list.next)
- def test_get_from_list_mixin(self):
- class M(GetFromListMixin, FakeManager):
- pass
-
- @urlmatch(scheme="http", netloc="localhost", path='/api/v4/tests',
- method="get")
- def resp_cont(url, request):
- headers = {'Content-Type': 'application/json'}
- content = '[{"id": 42, "foo": "bar"},{"id": 43, "foo": "baz"}]'
- return response(200, content, headers, None, 5, request)
-
- with HTTMock(resp_cont):
- mgr = M(self.gl)
- obj = mgr.get(42)
- self.assertIsInstance(obj, FakeObject)
- self.assertEqual(obj.foo, 'bar')
- self.assertEqual(obj.id, 42)
-
- self.assertRaises(GitlabGetError, mgr.get, 44)
-
def test_create_mixin_get_attrs(self):
class M1(CreateMixin, FakeManager):
pass