summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2016-07-18 23:19:14 +0200
committerGauvain Pocentek <gauvain@pocentek.net>2016-07-18 23:19:14 +0200
commit741896d5af682de01101ed4e7713b1daecaf7843 (patch)
tree59745e1740ae63a2c55388d19705e61b2755da85
parent99d0177b3f4d4d08e8c021809eb01d4744ea32fd (diff)
downloadgitlab-741896d5af682de01101ed4e7713b1daecaf7843.tar.gz
tests: don't use deprecated Content method
-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 aea80ca..ca0149f 100644
--- a/gitlab/tests/test_gitlabobject.py
+++ b/gitlab/tests/test_gitlabobject.py
@@ -486,9 +486,9 @@ class TestProjectSnippet(unittest.TestCase):
def test_content(self):
with HTTMock(self.resp_content):
data = b'content'
- content = self.obj.Content()
+ content = self.obj.content()
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.content)