コード例 #1
0
ファイル: tests.py プロジェクト: RossRogers/dj3
 def test_tell(self):
     r = HttpResponseBase()
     with self.assertRaisesMessage(OSError, 'This HttpResponseBase instance cannot tell its position'):
         r.tell()
コード例 #2
0
ファイル: tests.py プロジェクト: Hwesta/django
 def test_tell(self):
     r = HttpResponseBase()
     with self.assertRaisesMessage(IOError, 'This HttpResponseBase instance cannot tell its position'):
         r.tell()