예제 #1
0
 def test_non_file_like_obj(self):
     self.assertFalse(readable(object()))
예제 #2
0
 def is_compatible(cls, upload_source):
     return readable(upload_source)
예제 #3
0
 def test_readable_file_like_obj(self):
     self.assertTrue(readable(six.BytesIO()))
예제 #4
0
 def test_readable_fileobj(self):
     with tempfile.TemporaryFile() as f:
         self.assertTrue(readable(f))
예제 #5
0
 def test_non_file_like_obj(self):
     self.assertFalse(readable(object()))
예제 #6
0
 def test_readable_file_like_obj(self):
     self.assertTrue(readable(six.BytesIO()))
예제 #7
0
 def test_readable_fileobj(self):
     with tempfile.TemporaryFile() as f:
         self.assertTrue(readable(f))