forked from mozilla/bedrock
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 823919: Fix content-type of tabzilla.js.
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from django.test import Client | ||
|
||
from funfactory.urlresolvers import reverse | ||
|
||
from mozorg.tests import TestCase | ||
|
||
|
||
class TabzillaViewTests(TestCase): | ||
def setUp(self): | ||
self.client = Client() | ||
|
||
def test_tabzilla_content_type(self): | ||
""" Content-Type header should be text/javascript. """ | ||
with self.activate('en-US'): | ||
resp = self.client.get(reverse('tabzilla')) | ||
self.assertEqual(resp['content-type'], 'text/javascript') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters