Fixing unit tests

This commit is contained in:
derv82
2017-05-14 17:42:52 -04:00
parent ecfeeaae41
commit 2a5258ceef
4 changed files with 4 additions and 4 deletions

View File

@@ -7,6 +7,7 @@ import os
class Configuration(object): class Configuration(object):
''' Stores configuration variables and functions for Wifite. ''' ''' Stores configuration variables and functions for Wifite. '''
verbose = 0
initialized = False # Flag indicating config has been initialized initialized = False # Flag indicating config has been initialized
temp_dir = None # Temporary directory temp_dir = None # Temporary directory

View File

@@ -4,7 +4,7 @@
import sys import sys
sys.path.insert(0, '..') sys.path.insert(0, '..')
from Handshake import Handshake from py.Handshake import Handshake
import unittest import unittest
@@ -20,7 +20,6 @@ class TestHandshake(unittest.TestCase):
def testAnalyze(self): def testAnalyze(self):
hs_file = self.getFile('handshake_exists.cap') hs_file = self.getFile('handshake_exists.cap')
print hs_file
hs = Handshake(hs_file, bssid='A4:2B:8C:16:6B:3A') hs = Handshake(hs_file, bssid='A4:2B:8C:16:6B:3A')
try: try:
hs.analyze() hs.analyze()

View File

@@ -1,7 +1,7 @@
#!/usr/bin/python2.7 #!/usr/bin/python2.7
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from Airodump import Airodump from py.Airodump import Airodump
import unittest import unittest

View File

@@ -1,2 +1,2 @@
#!/bin/sh #!/bin/sh
python2.7 -m unittest discover py python2.7 -m unittest discover py/tests -v