Exemplo n.º 1
0
 def test_check_path_2(self):
     self.assertTrue(
         CABRuleTools.check_path("BTC.CAB.Commons.Core",
                                 "BTC/CAB/Commons/Core",
                                 pathmodule=posixpath))
Exemplo n.º 2
0
 def test_check_path_longer_prefix_mixed_path(self):
     self.assertTrue(
         CABRuleTools.check_path("BTC.CAB.Commons.Core.TimeSeries",
                                 "a/BTC/CAB/Commons.Core/TimeSeries",
                                 pathmodule=posixpath))
Exemplo n.º 3
0
 def test_check_path_longer_all_mixed_path(self):
     self.assertTrue(
         CABRuleTools.check_path("X.Y.Commons.Core",
                                 "a/X.Y.Commons.Core",
                                 pathmodule=posixpath))
Exemplo n.º 4
0
 def test_check_path_6(self):
     self.assertFalse(
         CABRuleTools.check_path("BTC.CAB.Commons.Core",
                                 "/Core",
                                 pathmodule=posixpath))
Exemplo n.º 5
0
 def test_check_path_5(self):
     self.assertTrue(
         CABRuleTools.check_path("BTC.Application.Test",
                                 "BTC\Application\Test",
                                 strict=False,
                                 pathmodule=ntpath))
Exemplo n.º 6
0
 def test_check_path_2_unicode(self):
     self.assertTrue(
         CABRuleTools.check_path(unicode("BTC.CAB.Commons.Core"),
                                 unicode("BTC/CAB/Commons/Core"),
                                 pathmodule=posixpath))