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