

def test_file_response(self):
    r = self.client.get('/user')
    self.assertTrue(hasattr(r, 'read'), 'File-like object not returned.')
    self.assertEqual(r.read(), b'Hello World!')

dataset/ETHPy150Open smartfile/client-python/tests.py DownloadTestCase.test_file_response/original