package openwrt import "testing" func TestDhcpClientAskForIP(t *testing.T) { uexec := createMockExecutor("", "", 0) dhc := NewDhcpClientWithExecutor("wlan1", uexec) res := dhc.AskForIP() if res.CmdRes.ReturnCode != 0 { t.Error("Error in DHCP Client !!") } }