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