def test_non_file_like_obj(self): self.assertFalse(readable(object()))
def is_compatible(cls, upload_source): return readable(upload_source)
def test_readable_file_like_obj(self): self.assertTrue(readable(six.BytesIO()))
def test_readable_fileobj(self): with tempfile.TemporaryFile() as f: self.assertTrue(readable(f))