def test_deploy(self, start_mock): start_mock.return_value = 0 g = Gantry() g.deploy("foo", "124", "123") self.docker_mock.stop.assert_called_once_with( "1da4dfe2db6dbf45755f8419e9de4e78f340b4f300783a57e42ead853b46158a", "5e68d8d416da617eeed45f7613f820731fe1d642ff343a43a4a49b55cbb2116e", "60008cffafabaca08174af02d95de22bda6aad09a31a86aeb6b47a6c77f3bec3", ) start_mock.assert_called_with("51f59b5c1b8354c2cc430cc3641fc87a0ad8443465f7b97d9f79ad6263f45548") assert_equal(3, start_mock.call_count)
def test_deploy(self, start_mock): start_mock.return_value = 0 g = Gantry() g.deploy('foo', '124', '123') self.docker_mock.stop.assert_called_once_with( '1da4dfe2db6dbf45755f8419e9de4e78f340b4f300783a57e42ead853b46158a', '5e68d8d416da617eeed45f7613f820731fe1d642ff343a43a4a49b55cbb2116e', '60008cffafabaca08174af02d95de22bda6aad09a31a86aeb6b47a6c77f3bec3') start_mock.assert_called_with( '51f59b5c1b8354c2cc430cc3641fc87a0ad8443465f7b97d9f79ad6263f45548') assert_equal(3, start_mock.call_count)
def test_deploy_unknown_from_tag(self, start_mock): start_mock.return_value = 0 g = Gantry() # Should not raise g.deploy("foo", "124", "122")
def test_deploy_stop(self, start_mock): start_mock.return_value = 0 g = Gantry() g.deploy("foo", "124", "123", stop=False) self.docker_mock.stop.assert_not_called()
def test_deploy_unknown_from_tag(self, start_mock): start_mock.return_value = 0 g = Gantry() # Should not raise g.deploy('foo', '124', '122')
def test_deploy_stop(self, start_mock): start_mock.return_value = 0 g = Gantry() g.deploy('foo', '124', '123', stop=False) self.docker_mock.stop.assert_not_called()