Skip to content

Commit

Permalink
more test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
trolldbois committed Mar 13, 2016
1 parent 703aeea commit a61244f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions test/haystack/test_cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""Tests haystack.basicmodel ."""

import logging
import unittest

import os
import subprocess
import sys
from haystack import cli
from test.haystack import SrcTests


class TestCLI(SrcTests):

def test_find_heap(self):
p = os.path.sep.join([os.getcwd(), 'scripts'])
sys.path.append(p)
cmd = 'python scripts/haystack-find-heap.py -v test/dumps/minidump/alg.dmp'.split(" ")
args=['scripts/haystack-find-heap.py']
ret = subprocess.check_output(cmd)
self.assertIn('0x000d0000', ret)
return


if __name__ == '__main__':
logging.basicConfig(level=logging.INFO)
# logging.basicConfig(level=logging.INFO)
unittest.main(verbosity=2)

0 comments on commit a61244f

Please sign in to comment.