def test_can_build3(self): """test can_build (with helpers)""" # note can_build ignores the helpers (if present) cando = {'i586': {'i386': '', 'i586': ''}, 'x86_64': {'x86_64': '', 'i586': 'linux32'}} self.assertTrue(can_build('i586', 'i586', cando)) self.assertTrue(can_build('i586', 'i386', cando)) self.assertTrue(can_build('x86_64', 'x86_64', cando)) self.assertTrue(can_build('x86_64', 'i586', cando))
def test_can_build1(self): """test can_build (simple)""" cando = {'i586': {'i386': '', 'i586': ''}, 'x86_64': {'x86_64': ''}} self.assertTrue(can_build('i586', 'i586', cando)) self.assertTrue(can_build('i586', 'i386', cando)) self.assertTrue(can_build('x86_64', 'x86_64', cando)) # invalid buildarches self.assertFalse(can_build('i586', 'x86_64', cando)) self.assertFalse(can_build('x86_64', 'i586', cando))
def test_can_build3(self): """test can_build (with helpers)""" # note can_build ignores the helpers (if present) cando = { 'i586': { 'i386': '', 'i586': '' }, 'x86_64': { 'x86_64': '', 'i586': 'linux32' } } self.assertTrue(can_build('i586', 'i586', cando)) self.assertTrue(can_build('i586', 'i386', cando)) self.assertTrue(can_build('x86_64', 'x86_64', cando)) self.assertTrue(can_build('x86_64', 'i586', cando))