def test_RtsCtsSetting(self):
for rtscts in (True, False):
self.s.rtscts = rtscts
# test get method
self.assertEqual(self.s.rtscts, rtscts)
# test internals
self.assertEqual(self.s._rtscts, rtscts)
# no illegal values here, normal rules for the boolean value of an
# object are used thus all objects have a truth value.
# this test does not work anymore since serial_for_url that is used
# now, already sets a port
评论列表
文章目录