Beispiel #1
0
 def test_memory_diagnostics(self):
     memory = diagnostics.MemoryDiagnostics(maximum=1, used=2)
     self.assertEqual(1, memory.maximum)
     self.assertEqual(2, memory.used)
Beispiel #2
0
 def test_memory_diagnostics_default(self):
     memory = diagnostics.MemoryDiagnostics()
     self.assertEqual(0, memory.maximum)
     self.assertEqual(0, memory.used)