def test_delitem(self):
        slist = common.StructuredTextList()
        st1 = common.StructuredText("foo", ordinality=1)
        st2 = common.StructuredText("bar", ordinality=2)

        slist.add(st1)
        slist.add(st2)

        del slist[1]

        self.assertTrue(slist not in st1)
        self.assertTrue(st2 in slist)
        self.assertRaises(
            KeyError,
            slist.__getitem__,
            1
        )
dataset/ETHPy150Open STIXProject/python-stix/stix/test/common/structured_text_tests.py/StructuredTextListTests.test_delitem/swapped operands of `not in`