hybridgroup.gobot/platforms/pebble/pebble_adaptor_test.go

22 lines
391 B
Go
Raw Normal View History

2014-05-03 06:22:05 +08:00
package pebble
import (
2014-06-14 05:18:57 +08:00
"testing"
"github.com/hybridgroup/gobot"
2014-05-03 06:22:05 +08:00
)
2014-06-14 07:01:39 +08:00
func initTestPebbleAdaptor() *PebbleAdaptor {
return NewPebbleAdaptor("pebble")
2014-06-14 05:18:57 +08:00
}
2014-05-03 06:22:05 +08:00
2014-06-14 07:01:39 +08:00
func TestPebbleAdaptorConnect(t *testing.T) {
a := initTestPebbleAdaptor()
gobot.Assert(t, len(a.Connect()), 0)
2014-06-14 05:18:57 +08:00
}
2014-06-14 07:01:39 +08:00
func TestPebbleAdaptorFinalize(t *testing.T) {
a := initTestPebbleAdaptor()
gobot.Assert(t, len(a.Finalize()), 0)
2014-06-14 05:18:57 +08:00
}