hybridgroup.gobot/platforms/parrot/bebop/bebop_driver_test.go

20 lines
357 B
Go
Raw Normal View History

package bebop
import (
"strings"
"testing"
"gobot.io/x/gobot"
"gobot.io/x/gobot/gobottest"
)
var _ gobot.Driver = (*Driver)(nil)
func TestBebopDriverName(t *testing.T) {
a := initTestBebopAdaptor()
d := NewDriver(a)
gobottest.Assert(t, strings.HasPrefix(d.Name(), "Bebop"), true)
d.SetName("NewName")
gobottest.Assert(t, d.Name(), "NewName")
}