def test_arch_matches_with_unsuccessful_run_command(self, mock): self.assertFalse(arch_matches('linux-amd64', 'i386'))
def test_arch_matches_without_dash(self): self.assertFalse(arch_matches('any', 'amd64'))
def test_arch_matches_with_successful_run_command(self, mock): self.assertTrue(arch_matches('linux-amd64', 'amd64'))
def test_arch_matches_ends_with_any(self): self.assertTrue(arch_matches('bsd-amd64', 'bsd-any')) self.assertFalse(arch_matches('linux-amd64', 'kfreebsd-any'))
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'))
def test_arch_matches_any_arch(self): self.assertTrue(arch_matches('amd64', 'any'))
def test_arch_matches_pseudo_arches(self): self.assertFalse(arch_matches('all', 'amd64')) self.assertFalse(arch_matches('source', 'amd64'))
def test_arch_matches_arch_equal_alias(self): self.assertTrue(arch_matches('amd64','amd64'))