Exemplo n.º 1
0
 def test_get_cpu_type_mips(self):
     self.mock(platform, 'machine', lambda: 'mips64')
     self.assertEqual(os_utilities.get_cpu_type(), u'mips')
Exemplo n.º 2
0
 def test_get_cpu_type(self):
   actual = os_utilities.get_cpu_type()
   if actual == 'x86':
     return
   self.assertTrue(actual.startswith('arm'), actual)
Exemplo n.º 3
0
 def test_get_cpu_type(self):
     actual = os_utilities.get_cpu_type()
     if actual == u'x86':
         return
     self.assertTrue(actual.startswith(u'arm'), actual)