--- a/tests/test_viewer.py Wed Jul 20 09:33:43 2016 +0800
+++ b/tests/test_viewer.py Wed Jul 20 09:34:13 2016 +0800
assert '1 error' in response.body
assert '1 warning' in response.body
+ response = self.fetch('/butt.cloud/cyber/wizard-attack/latest')
+ assert response.code == 404
+ assert 'online linter' in response.body
+ response = self.fetch('/example.com/alice/test-viewer/latest')
+ assert response.code == 200
+ assert '1 error' in response.body
+ assert '1 warning' in response.body
+ response = self.fetch('/example.com/alice/test-viewer/latest/raw')
+ assert response.code == 200
+ assert response.headers['Content-Type'] == 'text/plain; charset=utf-8'
response = self.fetch('/butt.cloud/cyber/wizard-attack/status.svg')
assert response.code == 404