Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

pep8

  • Loading branch information...
commit 01e694ea4c8fe1d57b2aef0fa2a4061fa86b8716 1 parent 7c46a9d
@mapleoin authored
Showing with 3 additions and 2 deletions.
  1. +2 −1  popcorn/test/test_helpers.py
  2. +1 −1  popcorn/test/test_views.py
View
3  popcorn/test/test_helpers.py
@@ -29,6 +29,7 @@
from popcorn.helpers import render
+
class TestHelpers(unittest.TestCase):
def test_render_html(self):
@@ -89,4 +90,4 @@ def index():
self.assertEqual(response.status_code, 418)
self.assertEqual(json.loads(response.data),
{'test_data': 'foo'})
- self.assertEqual(response.headers['Content-Type'], 'application/json')
+ self.assertEqual(response.headers['Content-Type'], 'application/json')
View
2  popcorn/test/test_views.py
@@ -102,7 +102,7 @@ def test_submission_plaintext_without_header(self):
def test_index_json(self):
self.submit(compress=False, header=False)
-
+
response = self.app.get('/', headers=[('Accept', 'application/json')])
self.assertEqual(json.loads(response.data), {
"submissions_distrover": u'[["openSUSE 12.1", 1]]',
Please sign in to comment.
Something went wrong with that request. Please try again.