コード例 #1
0
ファイル: unit.py プロジェクト: garethr/mnml
 def test_response_headers(self):
     response = HttpResponse()
     self.assertEqual(response.get_headers(), [('content-length', '0'), ('content-type', 'text/html'), ('Location', '/')])
コード例 #2
0
ファイル: unit.py プロジェクト: pilif/mnml
 def test_response_headers(self):
     response = HttpResponse()
     self.assertEqual(response.get_headers(), [('content-length', '0'), ('content-type', 'text/html; charset=utf-8')])