示例#1
0
 def test_arch_matches_with_unsuccessful_run_command(self, mock):
     self.assertFalse(arch_matches('linux-amd64', 'i386'))
示例#2
0
 def test_arch_matches_without_dash(self):
     self.assertFalse(arch_matches('any', 'amd64'))
示例#3
0
 def test_arch_matches_with_successful_run_command(self, mock):
     self.assertTrue(arch_matches('linux-amd64', 'amd64'))
示例#4
0
 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
 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
 def test_arch_matches_any_arch(self):
     self.assertTrue(arch_matches('amd64', 'any'))
示例#7
0
 def test_arch_matches_pseudo_arches(self):
     self.assertFalse(arch_matches('all', 'amd64'))
     self.assertFalse(arch_matches('source', 'amd64'))
示例#8
0
 def test_arch_matches_arch_equal_alias(self):
     self.assertTrue(arch_matches('amd64','amd64'))