def test_truncate(self):
        "Sequence truncate"
        assert str(self.seq[-202020202:5]) == 'atttg'
        assert self.seq[-202020202:5] == self.seq[0:5]
        assert self.seq[-2020202:] == self.seq
        assert str(self.seq[-202020202:-5]) == 'atttgactatgc'
        assert str(self.seq[-5:2029]) == 'tccag'
        assert str(self.seq[-5:]) == 'tccag'
        try:
            self.seq[999:10000]
            raise ValueError('failed to trap out of bounds slice')
        except __HOLE__:
            pass
        try:
            self.seq[-10000:-3000]
            raise ValueError('failed to trap out of bounds slice')
        except IndexError:
            pass
        try:
            self.seq[1000:]
            raise ValueError('failed to trap out of bounds slice')
        except IndexError:
            pass
dataset/ETHPy150Open cjlee112/pygr/tests/sequence_test.py/Sequence_Test.test_truncate