def had_pan_tilt_limit_expect_no_exception(self, pan, tilt): connector = self.setup_connector() hpt = HeadToPanTilt((pan, tilt)) hpt.perform(connector)
def had_pan_tilt_limit_expect_exception(self, pan, tilt): connector = self.setup_connector() hpt = HeadToPanTilt((pan, tilt)) with self.assertRaises(ValueError): hpt.perform(connector)