def test_build_isolation_from_build_override_service_config(self):
    self.mock_client.build.return_value = [b'{"stream": "Successfully built 12345"}']
    service = Service('foo', client=self.mock_client, build={'context': '.', 'isolation': 'default'}, isolation='hyperv')
    service.build()
    assert (self.mock_client.build.call_count == 1)
    called_build_args = self.mock_client.build.call_args[1]
    assert (called_build_args['isolation'] == 'default')
def test_build_isolation_from_build_override_service_config(self):
    self.mock_client.build.return_value = [b'{"stream": "Successfully built 12345"}']
    service = Service('foo', client=self.mock_client, build={'context': '.', 'isolation': 'default'}, isolation='hyperv')
    service.build()
    assert (self.mock_client.build.call_count == 1)
    called_build_args = self.mock_client.build.call_args[1]
    assert (called_build_args['isolation'] == 'default')