def is_prefixed(self, prefix): # check the <XmlStory> root tag in BackingStory.xml. from simple_idml.utils import str_is_prefixed return str_is_prefixed(prefix, self.backing_story.node.get("Self"))
def test_str_is_prefixed(self): from simple_idml.utils import str_is_prefixed self.assertFalse(str_is_prefixed("foo", "bar")) self.assertTrue(str_is_prefixed("foo", "foobar"))