def test_build_helper3(self): """test build_helper (helper present)""" cando = {'i586': {'i386': '', 'i586': ''}, 'x86_64': {'x86_64': '', 'i586': 'linux32'}} self.assertEqual(build_helper('i586', 'i586', cando), '') self.assertEqual(build_helper('i586', 'i386', cando), '') self.assertEqual(build_helper('x86_64', 'x86_64', cando), '') self.assertEqual(build_helper('x86_64', 'i586', cando), 'linux32')
def test_build_helper3(self): """test build_helper (helper present)""" cando = { 'i586': { 'i386': '', 'i586': '' }, 'x86_64': { 'x86_64': '', 'i586': 'linux32' } } self.assertEqual(build_helper('i586', 'i586', cando), '') self.assertEqual(build_helper('i586', 'i386', cando), '') self.assertEqual(build_helper('x86_64', 'x86_64', cando), '') self.assertEqual(build_helper('x86_64', 'i586', cando), 'linux32')
def test_build_helper1(self): """test build_helper""" cando = {'i586': {'i386': '', 'i586': ''}, 'x86_64': {'x86_64': ''}} self.assertEqual(build_helper('i586', 'i586', cando), '') self.assertEqual(build_helper('i586', 'i386', cando), '') self.assertEqual(build_helper('x86_64', 'x86_64', cando), '')