class HTMLResponseTests(unittest.TestCase):
def test_sets_content_type(self):
response = fwx.HTMLResponse('<html><body>Hello, world</body></html>')
class HTMLResponseTests(unittest.TestCase):
def test_sets_content_type(self):
response = fwx.HTMLResponse('<html><body>Hello, world</body></html>')
class JSONResponseTests(unittest.TestCase):
def test_sets_content_type(self):
response = fwx.JSONResponse({ 'foo': 'bar', 'baz': 42 })
class JSONResponseTests(unittest.TestCase):
def test_sets_content_type(self):
response = fwx.JSONResponse({ 'foo': 'bar', 'baz': 42 })
def test_sets_content(self):
response = fwx.JSONResponse({ 'foo': 'bar', 'baz': 42 })
def test_sets_content(self):
response = fwx.JSONResponse({ 'foo': 'bar', 'baz': 42 })
class TextResponseTests(unittest.TestCase):
def test_sets_content_type(self):
response = fwx.TextResponse('Hello, world\n')
class TextResponseTests(unittest.TestCase):
def test_sets_content_type(self):
response = fwx.TextResponse('Hello, world\n')