コード例 #1
0
ファイル: test_builder.py プロジェクト: bergmannf/osc2
 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))
コード例 #2
0
ファイル: test_builder.py プロジェクト: bergmannf/osc2
 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))
コード例 #3
0
 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))
コード例 #4
0
 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))