コード例 #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
ファイル: utils.py プロジェクト: siberianbear/SimpleIDML
 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
ファイル: utils.py プロジェクト: Starou/SimpleIDML
 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"))