예제 #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()