def test_build_with_override_build_args(self):
    self.mock_client.build.return_value = [b'{"stream": "Successfully built 12345"}']
    build_args = {'arg1': 'arg1_new_value'}
    service = Service('foo', client=self.mock_client, build={'context': '.', 'args': {'arg1': 'arg1', 'arg2': 'arg2'}})
    service.build(build_args_override=build_args)
    called_build_args = self.mock_client.build.call_args[1]['buildargs']
    assert (called_build_args['arg1'] == build_args['arg1'])
    assert (called_build_args['arg2'] == 'arg2')
def test_build_with_override_build_args(self):
    self.mock_client.build.return_value = [b'{"stream": "Successfully built 12345"}']
    build_args = {'arg1': 'arg1_new_value'}
    service = Service('foo', client=self.mock_client, build={'context': '.', 'args': {'arg1': 'arg1', 'arg2': 'arg2'}})
    service.build(build_args_override=build_args)
    called_build_args = self.mock_client.build.call_args[1]['buildargs']
    assert (called_build_args['arg1'] == build_args['arg1'])
    assert (called_build_args['arg2'] == 'arg2')