def test_reset(self):
        ords = (5,33,167)
        slist = common.StructuredTextList()

        for o in ords:
            text =  common.StructuredText("orig: %s" % o, o)
            slist.add(text)

        # test that original assignment worked correctly
        for o in ords:
            self.assertEqual(o, slist[o].ordinality)

        # reset ordinalities
        slist.reset()

        for o in xrange(1, len(ords) + 1):
            self.assertEqual(o, slist[o].ordinality)
dataset/ETHPy150Open STIXProject/python-stix/stix/test/common/structured_text_tests.py/StructuredTextListTests.test_reset/original