diff options
author | Gauvain Pocentek <gauvain@pocentek.net> | 2016-12-26 07:39:37 +0100 |
---|---|---|
committer | Gauvain Pocentek <gauvain@pocentek.net> | 2016-12-26 07:39:37 +0100 |
commit | 064e2b4bb7cb4b1775a78f51ebb46a00c9733af9 (patch) | |
tree | eb3072455b77e2a056beef794788916cd211e49f /gitlab/tests/test_gitlabobject.py | |
parent | 745389501281d9bcc069e86b1b41e1936132af27 (diff) | |
download | gitlab-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.py | 4 |
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) |