コード例 #1
0
ファイル: test_arches.py プロジェクト: opencollab/debile
 def test_arch_matches_with_unsuccessful_run_command(self, mock):
     self.assertFalse(arch_matches('linux-amd64', 'i386'))
コード例 #2
0
ファイル: test_arches.py プロジェクト: opencollab/debile
 def test_arch_matches_without_dash(self):
     self.assertFalse(arch_matches('any', 'amd64'))
コード例 #3
0
ファイル: test_arches.py プロジェクト: opencollab/debile
 def test_arch_matches_with_successful_run_command(self, mock):
     self.assertTrue(arch_matches('linux-amd64', 'amd64'))
コード例 #4
0
ファイル: test_arches.py プロジェクト: opencollab/debile
 def test_arch_matches_ends_with_any(self):
     self.assertTrue(arch_matches('bsd-amd64', 'bsd-any'))
     self.assertFalse(arch_matches('linux-amd64', 'kfreebsd-any'))
コード例 #5
0
ファイル: test_arches.py プロジェクト: opencollab/debile
 def test_arch_matches_linux_any_alias(self):
     self.assertTrue(arch_matches('amd64', 'linux-any'))
     self.assertTrue(arch_matches('linux-amd64', 'linux-any'))
     self.assertFalse(arch_matches('hurd-i386', 'linux-any'))
コード例 #6
0
ファイル: test_arches.py プロジェクト: opencollab/debile
 def test_arch_matches_any_arch(self):
     self.assertTrue(arch_matches('amd64', 'any'))
コード例 #7
0
ファイル: test_arches.py プロジェクト: opencollab/debile
 def test_arch_matches_pseudo_arches(self):
     self.assertFalse(arch_matches('all', 'amd64'))
     self.assertFalse(arch_matches('source', 'amd64'))
コード例 #8
0
ファイル: test_arches.py プロジェクト: opencollab/debile
 def test_arch_matches_arch_equal_alias(self):
     self.assertTrue(arch_matches('amd64','amd64'))