# Path: sprinter/exceptions.py
# class SprinterException(Exception):
#     """ For generic sprinter exceptions """
# 
# Path: sprinter/testtools.py
# class FormulaTest(object):
# 
#     def setup(self, **kw):
#         self.environment, self.temp_directory = create_mock_environment(**kw)
#         # adding some extra mocking
#         self.directory = self.environment.directory
#         self.environment.instantiate_features()
# 
#     def tearDown(self):
#         shutil.rmtree(self.temp_directory)


from mock import patch, Mock
from nose.tools import raises, ok_
from sprinter.exceptions import SprinterException
from sprinter.testtools import FormulaTest
import subprocess
import sprinter.lib as lib
from __future__ import unicode_literals

source_config = """
[update]
formula = sprinter.formula.command
update = echo 'this is old...'

[remove]
formula = sprinter.formula.command
remove = echo 'destroy up...'

[deactivate]
formula = sprinter.formula.command
deactivate = echo 'deactivating...'

[activate]
formula = sprinter.formula.command
activate = echo 'activating...'
"""

target_config = """
[install]

# Path: sprinter/exceptions.py
# class SprinterException(Exception):
#     """ For generic sprinter exceptions """
# 
# Path: sprinter/testtools.py
# class FormulaTest(object):
# 
#     def setup(self, **kw):
#         self.environment, self.temp_directory = create_mock_environment(**kw)
#         # adding some extra mocking
#         self.directory = self.environment.directory
#         self.environment.instantiate_features()
# 
#     def tearDown(self):
#         shutil.rmtree(self.temp_directory)


# Path: sprinter/formula/tests/test_command.py
from mock import patch, Mock
from nose.tools import raises, ok_
from sprinter.exceptions import SprinterException
from sprinter.testtools import FormulaTest
import subprocess
import sprinter.lib as lib

from __future__ import unicode_literals

source_config = """
[update]
formula = sprinter.formula.command
update = echo 'this is old...'

[remove]
formula = sprinter.formula.command
remove = echo 'destroy up...'

[deactivate]
formula = sprinter.formula.command
deactivate = echo 'deactivating...'

[activate]
formula = sprinter.formula.command
activate = echo 'activating...'
"""

target_config = """
[install]

formula = sprinter.formula.command