def test_remove(self): j = JaggedArrayNode() j.add_title("title1", "en", primary=True)\ .add_title("ייי", "he", primary=True)\ .add_title("title2", "en")\ .add_title("ייכי", "he") j.remove_title("title1", "en") j.depth = 1 j.sectionNames = ["Foo"] j.addressTypes = ["Integer"] j.key = "bob" with pytest.raises(IndexSchemaError): j.validate()
def test_remove(self): j = JaggedArrayNode() j.add_title(u"title1", "en", primary=True)\ .add_title(u"ייי", "he", primary=True)\ .add_title(u"title2", "en")\ .add_title(u"ייכי", "he") j.remove_title(u"title1", "en") j.depth = 1 j.sectionNames = ["Foo"] j.addressTypes = ["Integer"] j.key = "bob" with pytest.raises(IndexSchemaError): j.validate()