'Test for DESKTOP-293 - ensure seek works in python2.4'

def test_seek(self):

    fs = self.cluster.fs
    test_file = (self.prefix + '/fortest.txt')
    f = fs.open(test_file, 'w')
    try:
        f.write('hello')
        f.close()
        f = fs.open(test_file, 'r')
        f.seek(0, os.SEEK_SET)
        assert_equals('he', f.read(2))
        f.seek(1, os.SEEK_SET)
        assert_equals('el', f.read(2))
        f.seek((-1), os.SEEK_END)
        assert_equals('o', f.read())
        f.seek(0, os.SEEK_SET)
        f.seek(2, os.SEEK_CUR)
        assert_equals('ll', f.read(2))
    finally:
        fs.remove(test_file)
