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))
def setUp(self): if not FABRIC_SUPPORT: raise unittest.SkipTest('Fabric is not available!') self.fabric = FabricDeployer()