Exemple #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"))
Exemple #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"))
Exemple #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"))
Exemple #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"))