# Path: dftimewolf/lib/resources.py
# class Recipe(object):
#   def __init__(self,
#                description: str,
#                contents: Dict[str, Any],
#                args: List[Tuple[str, str, Any]]) -> None:
#   def GetHelpString(self) -> str:
# 
# Path: dftimewolf/metawolf/session.py
# class SessionSettable:
#   def __init__(
#       self,
#       session_id: str,
#       recipe: str,
#       name: str,
#       description: str,
#       value_type: Any,
#       optional: bool = False
#   ) -> None:
#   def SetSessionID(self, session_id: str) -> None:
#   def IsOptional(self) -> bool:
#   def SetValue(self, value: Any) -> None:
#   def GetValue(self) -> Any:
# 
# Path: dftimewolf/metawolf/utils.py
# DFTIMEWOLF = 'dftimewolf'
# LAST_ACTIVE_SESSION = 'last_active_session'
# LAST_ACTIVE_RECIPE = 'last_active_recipe'
# LAST_ACTIVE_PROCESSES = 'last_active_processes'
# SESSION_ID_SETTABLE = 'session_id'
# def GetDFTool() -> dftimewolf_recipes.DFTimewolfTool:
# def CreateNewSessionID() -> str:
# def IsInt(value: str) -> bool:
# def IsFloat(value: str) -> bool:
# def Str2Bool(value: str) -> Optional[bool]:
# def GetType(value: str) -> Any:
# def CastToType(value: str, value_type: Any) -> Any:
# def Marshal(st: session.SessionSettable) -> Dict[str, Any]:
# def Unmarshal(st: Dict[str, Any]) -> session.SessionSettable:
# def RunInBackground(processes: List['output.MetawolfProcess']) -> bool:
#   def __init__(self, session_path: str = '') -> None:
#   def ReadSessionFromFile(self, unmarshal: bool = True) -> Dict[str, Any]:
#   def PrepareDFTimewolfCommand(
#       self,
#       recipe: str,
#       session_settables: Dict[str, session.SessionSettable]
#   ) -> List[str]:
#   def GetRecipes(self) -> Dict[str, str]:
# class MetawolfUtils:


import json
import os
import unittest
import typing
from dftimewolf.lib import resources
from dftimewolf.metawolf import session
from dftimewolf.metawolf import utils
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for Metawolf output utilities."""




MOCK_SESSION_SETTABLE = session.SessionSettable(
    session_id='session_test',
    recipe='recipe_test',
    name='name_test',
    description='I am a mock!',
    value_type=str,
    optional=False
)
MOCK_SESSION_SETTABLE.SetValue('value_test')


# Path: dftimewolf/lib/resources.py
# class Recipe(object):
#   def __init__(self,
#                description: str,
#                contents: Dict[str, Any],
#                args: List[Tuple[str, str, Any]]) -> None:
#   def GetHelpString(self) -> str:
# 
# Path: dftimewolf/metawolf/session.py
# class SessionSettable:
#   def __init__(
#       self,
#       session_id: str,
#       recipe: str,
#       name: str,
#       description: str,
#       value_type: Any,
#       optional: bool = False
#   ) -> None:
#   def SetSessionID(self, session_id: str) -> None:
#   def IsOptional(self) -> bool:
#   def SetValue(self, value: Any) -> None:
#   def GetValue(self) -> Any:
# 
# Path: dftimewolf/metawolf/utils.py
# DFTIMEWOLF = 'dftimewolf'
# LAST_ACTIVE_SESSION = 'last_active_session'
# LAST_ACTIVE_RECIPE = 'last_active_recipe'
# LAST_ACTIVE_PROCESSES = 'last_active_processes'
# SESSION_ID_SETTABLE = 'session_id'
# def GetDFTool() -> dftimewolf_recipes.DFTimewolfTool:
# def CreateNewSessionID() -> str:
# def IsInt(value: str) -> bool:
# def IsFloat(value: str) -> bool:
# def Str2Bool(value: str) -> Optional[bool]:
# def GetType(value: str) -> Any:
# def CastToType(value: str, value_type: Any) -> Any:
# def Marshal(st: session.SessionSettable) -> Dict[str, Any]:
# def Unmarshal(st: Dict[str, Any]) -> session.SessionSettable:
# def RunInBackground(processes: List['output.MetawolfProcess']) -> bool:
#   def __init__(self, session_path: str = '') -> None:
#   def ReadSessionFromFile(self, unmarshal: bool = True) -> Dict[str, Any]:
#   def PrepareDFTimewolfCommand(
#       self,
#       recipe: str,
#       session_settables: Dict[str, session.SessionSettable]
#   ) -> List[str]:
#   def GetRecipes(self) -> Dict[str, str]:
# class MetawolfUtils:


# Path: tests/metawolf/utils.py
import json
import os
import unittest
import typing
from dftimewolf.lib import resources
from dftimewolf.metawolf import session
from dftimewolf.metawolf import utils

#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Tests for Metawolf output utilities."""




MOCK_SESSION_SETTABLE = session.SessionSettable(
    session_id='session_test',
    recipe='recipe_test',
    name='name_test',
    description='I am a mock!',
    value_type=str,
    optional=False
)
MOCK_SESSION_SETTABLE.SetValue('value_test')


MOCK_NO_VALUE_SETTABLE = session.SessionSettable(