# 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)
# 
# @contextmanager
# def set_os_types(osx=False, debian=False, fedora=False):
#     with patch('sprinter.lib.system.is_osx') as is_osx:
#         is_osx.return_value = osx
#         with patch('sprinter.lib.system.is_debian') as is_debian:
#             is_debian.return_value = debian
#             with patch('sprinter.lib.system.is_fedora') as is_fedora:
#                 is_fedora.return_value = fedora
#                 yield


import logging
import sprinter.lib as lib
from mock import Mock, patch
from sprinter.testtools import FormulaTest, set_os_types
from __future__ import unicode_literals


source_config = """
[no_update]
formula = sprinter.formula.package
apt-get = gitA

[update_new_package]
formula = sprinter.formula.package
apt-get = gitA
"""

target_config = """
[simple_example]
formula = sprinter.formula.package
brew = git
apt-get = git-core
yum = git-core

[no_update]

# 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)
# 
# @contextmanager
# def set_os_types(osx=False, debian=False, fedora=False):
#     with patch('sprinter.lib.system.is_osx') as is_osx:
#         is_osx.return_value = osx
#         with patch('sprinter.lib.system.is_debian') as is_debian:
#             is_debian.return_value = debian
#             with patch('sprinter.lib.system.is_fedora') as is_fedora:
#                 is_fedora.return_value = fedora
#                 yield


# Path: sprinter/formula/tests/test_package.py
import logging
import sprinter.lib as lib
from mock import Mock, patch
from sprinter.testtools import FormulaTest, set_os_types

from __future__ import unicode_literals


source_config = """
[no_update]
formula = sprinter.formula.package
apt-get = gitA

[update_new_package]
formula = sprinter.formula.package
apt-get = gitA
"""

target_config = """
[simple_example]
formula = sprinter.formula.package
brew = git
apt-get = git-core
yum = git-core

[no_update]

formula = sprinter.formula.package