mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-10 23:33:39 -07:00
added basic test
This commit is contained in:
parent
81c3400383
commit
7f691244e7
2 changed files with 12 additions and 0 deletions
|
@ -7,3 +7,4 @@ before_install:
|
||||||
- "sudo apt-get install libpcap0.8-dev libnetfilter-queue-dev"
|
- "sudo apt-get install libpcap0.8-dev libnetfilter-queue-dev"
|
||||||
|
|
||||||
install: "pip install -r requirements.txt"
|
install: "pip install -r requirements.txt"
|
||||||
|
script: tests/basic_tests.py
|
||||||
|
|
11
tests/basic_tests.py
Normal file
11
tests/basic_tests.py
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
import unittest
|
||||||
|
from commands import getstatusoutput
|
||||||
|
|
||||||
|
class BasicTests(unittest.TestCase):
|
||||||
|
|
||||||
|
def test_exec(self):
|
||||||
|
status, res = getstatusoutput('sudo python mitmf.py --help')
|
||||||
|
self.assertEqual(0, status)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
unittest.main()
|
Loading…
Add table
Add a link
Reference in a new issue