Exemple #1
0
 def test_gladius_handler_path_creation_on_not_exist(self, mock_os):
     mock_os.path = Mock()
     mock_os.path.exists.return_value = False
     self.handler = GladiusHandler()
     mock_os.makedirs.assert_called_with(self.handler.outpath)
     mock_os.makedirs.assert_called_with(self.handler.junkpath)
Exemple #2
0
 def test_gladius_handler_path_creation_on_exist(self, mock_os):
     mock_os.path = Mock()
     mock_os.path.exists.return_value = True
     self.handler = GladiusHandler()
     mock_os.makedirs.assert_not_called()
Exemple #3
0
 def setUp(self):
     self.handler = GladiusHandler()