Example #1
0
 def test_get_virtual_memory_percentage_not_0(self):
     self.assertTrue(get_virtual_memory()['percentage'] != 0)
Example #2
0
 def test_get_virtual_memory_returns_dict(self):
     self.assertTrue(type(get_virtual_memory()) is dict)
Example #3
0
 def test_get_virtual_memory_available_not_0(self):
     self.assertTrue(get_virtual_memory()['available'] != 0)
Example #4
0
 def test_get_virtual_memory_used_not_0(self):
     self.assertTrue(get_virtual_memory()['used'] != 0)
Example #5
0
 def test_get_virtual_memory_total_not_0(self):
     self.assertTrue(get_virtual_memory()['total'] != 0)
Example #6
0
 def test_get_virtual_memory_has_percentage_key(self):
     self.assertTrue('percentage' in get_virtual_memory())
Example #7
0
 def test_get_virtual_memory_has_used_key(self):
     self.assertTrue('used' in get_virtual_memory())
Example #8
0
 def test_get_virtual_memory_has_available_key(self):
     self.assertTrue('available' in get_virtual_memory())
Example #9
0
 def test_get_virtual_memory_has_total_key(self):
     self.assertTrue('total' in get_virtual_memory())