예제 #1
0
 def test_heap_dump_tmp(self):
     settings = Settings({"heap_dump": "tmp"})
     strategy = PercentStrategy("blitz", settings)
     hd = strategy.get_heap_dump()
     append = strategy.get_append()
     assert " " not in hd
     assert "HeapDumpPath" not in hd
     assert "HeapDumpPath" in "".join(append)
예제 #2
0
 def test_heap_dump_tmp(self):
     settings = Settings({"heap_dump": "tmp"})
     strategy = PercentStrategy("blitz", settings)
     hd = strategy.get_heap_dump()
     append = strategy.get_append()
     assert " " not in hd
     assert "HeapDumpPath" not in hd
     assert "HeapDumpPath" in "".join(append)
예제 #3
0
 def test_heap_dump_on(self):
     settings = Settings({"heap_dump": "on"})
     strategy = PercentStrategy("blitz", settings)
     hd = strategy.get_heap_dump()
     append = strategy.get_append()
     assert " " not in hd
     assert "HeapDumpPath" not in hd
     assert not append
예제 #4
0
 def test_heap_dump_on(self):
     settings = Settings({"heap_dump": "on"})
     strategy = PercentStrategy("blitz", settings)
     hd = strategy.get_heap_dump()
     append = strategy.get_append()
     assert " " not in hd
     assert "HeapDumpPath" not in hd
     assert not append