コード例 #1
0
 def test_cpu_speed_ee(self):
     input_data = {}
     input_data['uname_a'] = UNAME_A_WRONG
     input_data['proc_cpuinfo'] = CPUINFO_CORRECT
     self.assertEquals(None, sat5_hw_reqs.cpu_speed(input_data))
コード例 #2
0
 def test_cpu_speed_ee(self):
     input_data = {}
     input_data['uname_a'] = UNAME_A_WRONG
     input_data['proc_cpuinfo'] = CPUINFO_CORRECT
     self.assertEquals(None, sat5_hw_reqs.cpu_speed(input_data))
コード例 #3
0
 def test_cpu_speed_ok(self):
     input_data = {}
     input_data['uname_a'] = UNAME_A_CORRECT
     input_data['proc_cpuinfo'] = CPUINFO_CORRECT
     self.assertEquals(2600.004, sat5_hw_reqs.cpu_speed(input_data))
コード例 #4
0
 def test_cpu_speed_ok(self):
     input_data = {}
     input_data['uname_a'] = UNAME_A_CORRECT
     input_data['proc_cpuinfo'] = CPUINFO_CORRECT
     self.assertEquals(2600.004, sat5_hw_reqs.cpu_speed(input_data))