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)
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()
def setUp(self): self.handler = GladiusHandler()