hybridgroup.gobot/platforms/holystone/hs200/hs200_driver_test.go

18 lines
324 B
Go
Raw Normal View History

package hs200
import (
"testing"
"gobot.io/x/gobot"
"gobot.io/x/gobot/gobottest"
)
var _ gobot.Driver = (*Driver)(nil)
func TestHS200Driver(t *testing.T) {
d := NewDriver("127.0.0.1:8080", "127.0.0.1:9090")
gobottest.Assert(t, d.tcpaddress, "127.0.0.1:8080")
gobottest.Assert(t, d.udpaddress, "127.0.0.1:9090")
}