summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/modifiers_test.go
blob: 2e249eeeaab54827516aa0c7db7f54ba88cf4c3b (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, "User Class Information -> linuxboot", d.options[0].String())
}