示例#1
0
文件: idml.py 项目: Starou/SimpleIDML
 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"))
示例#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"))
示例#3
0
文件: idml.py 项目: mnvx/SimpleIDML
 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"))
示例#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"))