You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: bucket_test.go
    path of file: ./repos/storj/satellite/admin
    
    the code of the file until where you have to start completion: // Copyright (C) 2021 Storj Labs, Inc.
// See LICENSE for copying information.

package admin

import (
	"testing"

	"github.com/stretchr/testify/require"

	"storj.io/common/storj"
	"storj.io/common/uuid"
)

func TestValidateRequestParameters(t *testing.T) {
	uid, err := uuid.New()
	require.NoError(t, err, "failed to generate uuid")

	testCases := []struct {
		name   string
		params map[string]string
		// expectations
		project uuid.NullUUID
		bucket  []byte
		err     string

    
func TestParsePlacementConstraint(t *testing.T) {
	testCases := []struct {
		name      string
		region    string
		placement storj.PlacementConstraint
		err       string
	}{
		{"invalid", "invalid", storj.EveryCountry, "unrecognized region parameter: invalid"},
		{"empty", "", storj.EveryCountry, "missing region parameter"},
		{"US", "US", storj.US, ""},
		{"EU", "EU", storj.EU, ""},
		{"EEA", "EEA", storj.EEA, ""},
		{"DE", "DE", storj.DE, ""},
		{"NR", "NR", storj.NR, ""},
	}

	for _, testCase := range testCases {
		t.Run(testCase.name, func(t *testing.T) {
			placement, err := parsePlacementConstraint(testCase.region)

			require.Equal(t, testCase.placement, placement)

			if len(testCase.err) > 0 {
				require.Error(t, err)
				require.Equal(t, testCase.err, err.Error())
			} else {
				require.NoError(t, err)
			}
		})
	}
}