File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66# sleep 2
77clear
88
9- echo " ** Starting unittest/ pytest .."
9+ echo " ** Starting pytest .."
1010sleep 2
11- python3 -m unittest discover tests -v
11+ # python3 -m unittest discover tests -v
1212sleep 2
13+ pytest -k testNoHandshakeTshark
14+ # sleep 2
1315echo " ** runtests.sh test script at the end"
Original file line number Diff line number Diff line change @@ -33,8 +33,11 @@ def testAnalyze(self):
3333 def testHandshakeTshark (self ):
3434 print ("\n Testing handshake with tshark..." )
3535 hs_file = self .getFile ("handshake_exists.cap" )
36+ print ("Testing file:" , hs_file )
3637 hs = Handshake (hs_file , bssid = 'A4:2B:8C:16:6B:3A' )
37- assert (len (hs .tshark_handshakes ()) > 0 ), f'Expected len>0 but got len({ len (hs .tshark_handshakes ())} )'
38+ handshakes = hs .tshark_handshakes ()
39+ print (f"Found { len (handshakes )} handshake(s): { handshakes } " )
40+ assert len (handshakes ) > 0 , f'Expected len>0 but got len({ len (handshakes )} )'
3841
3942 @unittest .skipUnless (Process .exists ("cowpatty" ), 'cowpatty is missing' )
4043 def testHandshakeCowpatty (self ):
You can’t perform that action at this time.
0 commit comments