Ejemplo n.º 1
0
 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')
Ejemplo n.º 2
0
 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')
Ejemplo n.º 3
0
 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), '')
Ejemplo n.º 4
0
 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), '')