summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/modifiers_test.go
blob: 415a4ea665369a7b5cd9f0939cd1e2c1257e598c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package dhcpv4

import (
	"testing"

	"github.com/stretchr/testify/require"
)

func TestUserClassModifier(t *testing.T) {
	d, _ := New()
	userClass := WithUserClass([]byte("linuxboot"))
	d = userClass(d)
	require.Equal(t, "OptUserClass{userclass=[linuxboot]}", d.options[0].String())
}