summaryrefslogtreecommitdiff
path: root/gitlab/tests/test_gitlabobject.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2016-12-26 07:39:37 +0100
committerGauvain Pocentek <gauvain@pocentek.net>2016-12-26 07:39:37 +0100
commit064e2b4bb7cb4b1775a78f51ebb46a00c9733af9 (patch)
treeeb3072455b77e2a056beef794788916cd211e49f /gitlab/tests/test_gitlabobject.py
parent745389501281d9bcc069e86b1b41e1936132af27 (diff)
downloadgitlab-064e2b4bb7cb4b1775a78f51ebb46a00c9733af9.tar.gz
Snippet: content() -> raw()
Using the content() method causes conflicts with the API `content` attribute.
Diffstat (limited to 'gitlab/tests/test_gitlabobject.py')
-rw-r--r--gitlab/tests/test_gitlabobject.py4
1 files changed, 2 insertions, 2 deletions
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)