Пример #1
0
 def test_tell(self):
     r = HttpResponseBase()
     with self.assertRaisesMessage(OSError, 'This HttpResponseBase instance cannot tell its position'):
         r.tell()
Пример #2
0
 def test_tell(self):
     r = HttpResponseBase()
     with self.assertRaisesMessage(IOError, 'This HttpResponseBase instance cannot tell its position'):
         r.tell()