Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
Fixing ascii test
Browse files Browse the repository at this point in the history
  • Loading branch information
gkoberger committed Jan 27, 2011
1 parent d33bbfb commit b7c84fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/devhub/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3352,8 +3352,9 @@ def test_fileupload_user(self):
eq_(FileUpload.objects.get().user, user)

def test_fileupload_ascii_post(self):
data = open(os.path.join(settings.ROOT, 'apps', 'files', 'fixtures',
'files', u'jétpack.xpi'))
path = 'apps/files/fixtures/files/jétpack.xpi'
data = open(os.path.join(settings.ROOT, path))

r = self.client.post(self.url, {'upload': data})
# If this is broke, we'll get a traceback.
eq_(r.status_code, 302)
Expand Down

0 comments on commit b7c84fa

Please sign in to comment.