# 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


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

TEST_TARGZ = "http://github.com/toumorokoshi/sprinter/tarball/master"
TEST_ZIP = "http://iterm2.com/downloads/stable/iTerm2_v1_0_0.zip"
TEST_DMG = "https://dl.google.com/chrome/mac/stable/GGRM/googlechrome.dmg"


# 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_unpack.py
from mock import Mock, patch
from sprinter.testtools import FormulaTest, set_os_types
import sprinter.lib as lib

from __future__ import unicode_literals

TEST_TARGZ = "http://github.com/toumorokoshi/sprinter/tarball/master"
TEST_ZIP = "http://iterm2.com/downloads/stable/iTerm2_v1_0_0.zip"
TEST_DMG = "https://dl.google.com/chrome/mac/stable/GGRM/googlechrome.dmg"


source_config = """