예제 #1
0
 def test_check_path_2(self):
     self.assertTrue(
         CABRuleTools.check_path("BTC.CAB.Commons.Core",
                                 "BTC/CAB/Commons/Core",
                                 pathmodule=posixpath))
예제 #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))
예제 #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))
예제 #4
0
 def test_check_path_6(self):
     self.assertFalse(
         CABRuleTools.check_path("BTC.CAB.Commons.Core",
                                 "/Core",
                                 pathmodule=posixpath))
예제 #5
0
 def test_check_path_5(self):
     self.assertTrue(
         CABRuleTools.check_path("BTC.Application.Test",
                                 "BTC\Application\Test",
                                 strict=False,
                                 pathmodule=ntpath))
예제 #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))