Beispiel #1
0
 def test_invalid_mempath(self, p):
     set_cwd(tempfile.mkdtemp())
     m = Memory()
     m.memory_path = "notafile"
     assert m.run() is None
     p.error.assert_called_once()
     assert "dump not found" in p.error.call_args_list[0][0][0]
Beispiel #2
0
 def test_empty_mempath(self, p):
     set_cwd(tempfile.mkdtemp())
     m = Memory()
     m.memory_path = Files.temp_put("")
     assert m.run() is None
     p.error.assert_called_once()
     assert "dump empty" in p.error.call_args_list[0][0][0]
Beispiel #3
0
 def test_no_mempath(self, p):
     set_cwd(self.mkdtemp())
     m = Memory()
     m.memory_path = None
     assert m.run() is None
     p.error.assert_called_once()
     assert "dump not found" in p.error.call_args_list[0][0][0]