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