예제 #1
0
 def setUp(self):
     """Set up test fixtures, if any."""
     self.topology_data = dict()
     self.conn = MockConn()
     self.mock_kwargs = {
         "topology_data": self.topology_data,
         "modules": [],
         "conn_task": self.conn,
     }
     self.exe_task = ExeTask(**self.mock_kwargs)
예제 #2
0
 def setUp(self):
     """Set up test fixtures, if any."""
     self.conn = MockConn()
     mock_args = (-1, -1, self.conn)
     self.gyro = Gyro(*mock_args)
예제 #3
0
 def setUp(self):
     """Set up test fixtures, if any."""
     self.conn = MockConn()
     mock_args = (-1, -1, self.conn)
     self.button = Button(*mock_args)
예제 #4
0
파일: test_led.py 프로젝트: wsy8029/pymodi
 def setUp(self):
     """Set up test fixtures, if any."""
     self.conn = MockConn()
     self.mock_kwargs = -1, -1, self.conn
     self.led = Led(*self.mock_kwargs)
예제 #5
0
 def setUp(self):
     """Set up test fixtures, if any."""
     self.conn = MockConn()
     self.mock_kwargs = [-1, -1, self.conn]
     self.motor = Motor(*self.mock_kwargs)
예제 #6
0
 def setUp(self):
     """Set up test fixtures, if any."""
     self.conn = MockConn()
     mock_args = (-1, -1, self.conn)
     self.ultrasonic = Ultrasonic(*mock_args)