Exemplo n.º 1
0
 def test_tell(self):
     r = HttpResponseBase()
     with self.assertRaisesMessage(OSError, 'This HttpResponseBase instance cannot tell its position'):
         r.tell()
Exemplo n.º 2
0
 def test_tell(self):
     r = HttpResponseBase()
     with self.assertRaisesMessage(IOError, 'This HttpResponseBase instance cannot tell its position'):
         r.tell()