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" }
def api_mem_usage(): return {"cpu_usage": AboutSystem.get_mem_usage()}
def api_system_info(): return AboutSystem.get_total_info()
def test_get_processor_info(self): assert AboutSystem._get_processor_info( ) == "Intel64 Family 6 Model 165 Stepping 2, GenuineIntel"
def test_get_amount_ram(self): assert AboutSystem._get_amount_ram() == 31.79058074951172
def test_get_cpu_count(self): assert AboutSystem._get_cpu_count() == 8