--- 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
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
response = self.fetch('/butt.cloud/cyber/wizard-attack/status.svg')
assert response.code == 404