def test_read_past_eof(self):
        a_txt = self.repo.get_root()['a.txt']

        try:
            data = a_txt.read_data(0, 1024)
        except Exception, e:
            self.fail('read past EOF raised %r' % e)
        self.assertEqual(data, 'text file "a"\n')

        try:
            data = a_txt.read_data(500, 100)
        except Exception, e:
            self.fail('read past EOF raised %r' % e)
        self.assertEqual(data, '')
dataset/ETHPy150Open mgax/SpaghettiFS/spaghettifs/tests/test_storage.py/BackendTestCase.test_read_past_eof/original