示例#1
0
 def test_get_rparts_3(self):
     self.assertEqual(
         posixpath.sep.join(("Commons", "Core")),
         CABRuleTools.get_dirshort("a/BTC/Commons/Core",
                                   2,
                                   pathmodule=posixpath))
示例#2
0
 def test_get_rparts_5(self):
     self.assertEqual(
         "Core", CABRuleTools.get_dirshort("Core", 2, pathmodule=posixpath))
示例#3
0
 def test_get_rparts_2(self):
     self.assertEqual(
         "Core",
         CABRuleTools.get_dirshort("a/BTC/Commons/Core",
                                   1,
                                   pathmodule=posixpath))