Download:
child 168:fc6392f4acdb
parent 166:b55a7bba94ec
167:2982debb99be
Anton Shestakov <av6@dwimlabs.net>, Wed, 20 Jul 2016 09:33:43 +0800
tests: test project page

1 файлов изменено, 13 вставок(+), 0 удалений(-) [+]
tests/test_viewer.py file | annotate | diff | comparison | revisions
--- a/tests/test_viewer.py Tue Jul 19 22:25:24 2016 +0800
+++ b/tests/test_viewer.py Wed Jul 20 09:33:43 2016 +0800
@@ -63,6 +63,19 @@
assert response.code == 404
assert 'online linter' in response.body
+ def test_project(self):
+ response = self.fetch('/butt.cloud/cyber/wizard-attack')
+ assert response.code == 404
+ assert 'online linter' in response.body
+
+ response = self.fetch('/example.com/alice/test-viewer')
+ assert response.code == 200
+ assert 'Clone URL' in response.body
+ assert 'status.svg' in response.body
+ assert '.. image:: http' in response.body
+ assert '1 error' in response.body
+ assert '1 warning' in response.body
+
def test_status(self):
response = self.fetch('/butt.cloud/cyber/wizard-attack/status.svg')
assert response.code == 404