Ejemplo n.º 1
0
 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"))
Ejemplo n.º 2
0
 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"))
Ejemplo n.º 3
0
 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"))
Ejemplo n.º 4
0
 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"))