def test_script_validate_false(self, git_mock):
     git_mock.return_value = ['1', '2']
     self.task.insert_script(script.Script(name='1'))
     self.task.insert_script(script.Script(name='2'))
     self.task.insert_script(script.Script(name='3'))
     self.assertFalse(validator.ScriptValidator().validate(self.task))
     git_mock.assert_called_once_with(self.task)
 def setUp(self):
     self.name = 'test'
     self.task = Task(name=self.name)
     self.uut = host.Host(ip='1.1.1.1', mac=666666)
     self.build_host = host.WindowsBuildHost(ip='1.1.1.1', mac=666666)
     self.deploy_host = host.WindowsDeployHost(ip='1.1.1.1', mac=666666)
     self.script = script.Script(name='script')
 def setUp(self):
     self.scripts_name = 'unittest'
     self.scripts = script.Script(name=self.scripts_name)