From 064e2b4bb7cb4b1775a78f51ebb46a00c9733af9 Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Mon, 26 Dec 2016 07:39:37 +0100 Subject: Snippet: content() -> raw() Using the content() method causes conflicts with the API `content` attribute. --- gitlab/tests/test_gitlabobject.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gitlab/tests/test_gitlabobject.py') diff --git a/gitlab/tests/test_gitlabobject.py b/gitlab/tests/test_gitlabobject.py index d191c0f..3bffb82 100644 --- a/gitlab/tests/test_gitlabobject.py +++ b/gitlab/tests/test_gitlabobject.py @@ -483,9 +483,9 @@ class TestSnippet(unittest.TestCase): def test_content(self): with HTTMock(self.resp_content): data = b'content' - content = self.obj.content() + content = self.obj.raw() self.assertEqual(content, data) def test_blob_fail(self): with HTTMock(self.resp_content_fail): - self.assertRaises(GitlabGetError, self.obj.content) + self.assertRaises(GitlabGetError, self.obj.raw) -- cgit v1.2.1