summaryrefslogtreecommitdiff
path: root/tools/python_test.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2016-01-23 17:25:06 +0100
committerGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2016-01-23 17:25:30 +0100
commit2eac07139eb288cda2dd2d22d191ab3fc1053437 (patch)
tree8704db4cc3531b8c29488748ca4086b9d3dd892d /tools/python_test.py
parentd3a5701e5d481da452185e7a07d7b53493ed9073 (diff)
downloadgitlab-2eac07139eb288cda2dd2d22d191ab3fc1053437.tar.gz
add a decode method for ProjectFile
Diffstat (limited to 'tools/python_test.py')
-rw-r--r--tools/python_test.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/python_test.py b/tools/python_test.py
index b646116..b1ad953 100644
--- a/tools/python_test.py
+++ b/tools/python_test.py
@@ -110,6 +110,7 @@ readme = admin_project.files.create({'file_path': 'README.rst',
'branch_name': 'master',
'content': 'Initial content',
'commit_message': 'New commit'})
+assert(readme.decode() == 'Initial content')
# labels
label1 = admin_project.labels.create({'name': 'label1', 'color': '#778899'})