  def testCreateBuild(self, mock_gcb_api):
    """Test that Cloud Builds are correctly created."""
    build_create_object = mock_gcb_api.return_value.projects.return_value.builds.return_value.create
    build_create_object.return_value.execute.return_value = gcp_mocks.MOCK_GCB_BUILDS_CREATE
    build_response = gcp_mocks.FAKE_GCB.CreateBuild({'Fake-Build_body': None})
    self.assertEqual(gcp_mocks.MOCK_GCB_BUILDS_CREATE, build_response)
Test that Cloud Builds are correctly created.
tests/providers/gcp/internal/test_build.py