mirror of
https://github.com/undera/pylgbst.git
synced 2020-11-18 19:37:26 -08:00
20 lines
542 B
Python
20 lines
542 B
Python
import logging
|
|
import unittest
|
|
|
|
from demo import demo_all
|
|
from pylegoboost.transport import ConnectionMock
|
|
|
|
logging.basicConfig(level=logging.DEBUG)
|
|
|
|
|
|
class GeneralTest(unittest.TestCase):
|
|
def test_capabilities(self):
|
|
conn = ConnectionMock()
|
|
demo_all(conn)
|
|
# transport.write(ENABLE_NOTIFICATIONS_HANDLE, ENABLE_NOTIFICATIONS_VALUE)
|
|
# transport.write(MOVE_HUB_HARDWARE_HANDLE, b'\x0a\x00\x41\x01\x08\x01\x00\x00\x00\x01')
|
|
|
|
# from pylegoboost import DebugServer
|
|
# srv = DebugServer(None)
|
|
# srv.start()
|