def test_seek_end_read(self):
     f = FixedSizeEmptyReadOnlyFile(5)
     f.seek(5)
     s = f.read(2)
     self.assertEquals('', s)
 def test_read_some_from_beginning(self):
     f = FixedSizeEmptyReadOnlyFile(5)
     s = f.read(3)
     self.assertEquals('\0'*3, s)
 def test_seek_middle_read(self):
     f = FixedSizeEmptyReadOnlyFile(5)
     f.seek(1)
     s = f.read(2)
     self.assertEquals('\0'*2, s)
 def test_read_size_0(self):
     f = FixedSizeEmptyReadOnlyFile(0)
     s = f.read(5)
     self.assertEquals('',s)