Skip to content

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
iartarisi committed Sep 21, 2012
1 parent 7c46a9d commit 01e694e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion popcorn/test/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

from popcorn.helpers import render


class TestHelpers(unittest.TestCase):

def test_render_html(self):
Expand Down Expand Up @@ -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')
2 changes: 1 addition & 1 deletion popcorn/test/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]',
Expand Down

0 comments on commit 01e694e

Please sign in to comment.