コード例 #1
0
ファイル: checker_test.py プロジェクト: sigiesec/revengtools
 def test_check_path_2(self):
     self.assertTrue(
         CABRuleTools.check_path("BTC.CAB.Commons.Core",
                                 "BTC/CAB/Commons/Core",
                                 pathmodule=posixpath))
コード例 #2
0
ファイル: checker_test.py プロジェクト: sigiesec/revengtools
 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
ファイル: checker_test.py プロジェクト: sigiesec/revengtools
 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
ファイル: checker_test.py プロジェクト: sigiesec/revengtools
 def test_check_path_6(self):
     self.assertFalse(
         CABRuleTools.check_path("BTC.CAB.Commons.Core",
                                 "/Core",
                                 pathmodule=posixpath))
コード例 #5
0
ファイル: checker_test.py プロジェクト: sigiesec/revengtools
 def test_check_path_5(self):
     self.assertTrue(
         CABRuleTools.check_path("BTC.Application.Test",
                                 "BTC\Application\Test",
                                 strict=False,
                                 pathmodule=ntpath))
コード例 #6
0
ファイル: checker_test.py プロジェクト: sigiesec/revengtools
 def test_check_path_2_unicode(self):
     self.assertTrue(
         CABRuleTools.check_path(unicode("BTC.CAB.Commons.Core"),
                                 unicode("BTC/CAB/Commons/Core"),
                                 pathmodule=posixpath))