Пример #1
0
 def test_statnode_virtual_memory_new(self):
     node = StatNode(log_type='stats_log', api=self.watcher.api)
     actual = node._virtual_memory()
     expected = {'free': 5, 'percent': 81.0, 'total': 21, 'used': 19}
     self.assertEqual(actual, expected)