예제 #1
0
 def test_get_total_info(self):
     assert AboutSystem.get_total_info() == {
         "CPU Count":
         8,
         "CPU frequency":
         2496.0,
         "Amount of ram":
         31.79058074951172,
         "Processor information":
         "Intel64 Family 6 Model 165 Stepping 2, GenuineIntel"
     }
예제 #2
0
 def api_mem_usage():
     return {"cpu_usage": AboutSystem.get_mem_usage()}
예제 #3
0
 def api_system_info():
     return AboutSystem.get_total_info()
예제 #4
0
 def test_get_processor_info(self):
     assert AboutSystem._get_processor_info(
     ) == "Intel64 Family 6 Model 165 Stepping 2, GenuineIntel"
예제 #5
0
 def test_get_amount_ram(self):
     assert AboutSystem._get_amount_ram() == 31.79058074951172
예제 #6
0
 def test_get_cpu_count(self):
     assert AboutSystem._get_cpu_count() == 8