Esempio n. 1
0
File: test_ptp.py Progetto: owtf/ptp
 def test_ptp_init_parser_tool_ioerror(self):
     PTP.supported = {'mock': [MockParserIOError]}
     my_ptp = PTP(tool_name='mock')
     my_ptp._init_parser()
     self.assertIsNone(my_ptp.parser)
Esempio n. 2
0
File: test_ptp.py Progetto: owtf/ptp
 def test_ptp_init_parser_tool(self):
     PTP.supported = {'mock': [MockParser]}
     my_ptp = PTP(tool_name='mock')
     my_ptp._init_parser()
     self.assertTrue(my_ptp.parser is not None)
Esempio n. 3
0
File: test_ptp.py Progetto: owtf/ptp
 def test_ptp_init_parser_tool_version_not_supported(self):
     PTP.supported = {'mock': [MockParserVersionNotSupported]}
     my_ptp = PTP(tool_name='mock')
     my_ptp._init_parser()
     self.assertIsNone(my_ptp.parser)
Esempio n. 4
0
File: test_ptp.py Progetto: owtf/ptp
 def test_ptp_init_parser_no_tool(self):
     my_ptp = PTP()
     my_ptp._init_parser()
     self.assertIsNone(my_ptp.parser)
Esempio n. 5
0
 def test_ptp_init_parser_tool_ioerror(self):
     PTP.supported = {'mock': [MockParserIOError]}
     my_ptp = PTP(tool_name='mock')
     my_ptp._init_parser()
     self.assertIsNone(my_ptp.parser)
Esempio n. 6
0
 def test_ptp_init_parser_tool_version_not_supported(self):
     PTP.supported = {'mock': [MockParserVersionNotSupported]}
     my_ptp = PTP(tool_name='mock')
     my_ptp._init_parser()
     self.assertIsNone(my_ptp.parser)
Esempio n. 7
0
 def test_ptp_init_parser_tool(self):
     PTP.supported = {'mock': [MockParser]}
     my_ptp = PTP(tool_name='mock')
     my_ptp._init_parser()
     self.assertTrue(my_ptp.parser is not None)
Esempio n. 8
0
 def test_ptp_init_parser_no_tool(self):
     my_ptp = PTP()
     my_ptp._init_parser()
     self.assertIsNone(my_ptp.parser)