コード例 #1
0
ファイル: test_fabric.py プロジェクト: olivecoder/mamba
    def test_fabric_deploy_works(self):
        self.__prepare_file(True)
        fab = ProxySpy(FabricDeployer())

        state.output.update({
            'status': False,
            'stdout': False,
            'warnings': False,
            'debug': False,
            'running': False,
            'user': False,
            'stderr': False,
            'aborts': False
        })

        tmpdir = tempfile.gettempdir()
        assert_that(fab.deploy(tmpdir + sep + 'fabric_deployer_test.dc'),
                    is_(None))
        assert_that(fab.deploy, called().times(1))
コード例 #2
0
ファイル: test_fabric.py プロジェクト: olivecoder/mamba
 def setUp(self):
     if not FABRIC_SUPPORT:
         raise unittest.SkipTest('Fabric is not available!')
     self.fabric = FabricDeployer()