Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/b/r/BrickPython-0.4/test/TestBrickPiWrapper.py   BrickPython(Download)
    def testAllMethodsOK(self):
        bp = BrickPiWrapper({'1': Sensor})
        for c in range(ord('A'),ord('D')):
            assert( bp.motor(chr(c)) != None)
        m = bp.motor('A')

src/b/r/BrickPython-0.4/test/TestMotor.py   BrickPython(Download)
    def setUp(self):
        self.bp = BrickPiWrapper()
        motor = self.motor = self.bp.motor( 'A' )
        #motor.position = Mock()
        motor.timeMillis = Mock()