class SensorMagnetometroTest(unittest.TestCase): def setUp(self): self.sensorMagnetometro = SensorMagnetometro(DriverMagnetometroMock()) def test_getLastInfo_NoNone(self): self.assertIsNotNone(self.sensorMagnetometro.getLastInfo()) def test_getEstado_NoNone(self): self.assertIsNotNone(self.sensorMagnetometro.getStatus()) def test_getAltura(self): self.assertEquals(self.sensorMagnetometro.getAnguloCabezaDron(), data["angulo"])
class SensorMagnetometroTest(unittest.TestCase): def setUp(self): self.sensorMagnetometro = SensorMagnetometro(DriverMagnetometroMock()) def test_getLastInfo_NoNone(self): self.assertIsNotNone(self.sensorMagnetometro.getLastInfo()) def test_getEstado_NoNone(self): self.assertIsNotNone(self.sensorMagnetometro.getStatus()) def test_getAltura(self): self.assertEquals(self.sensorMagnetometro.getAnguloCabezaDron(), data['angulo'])
def setUp(self): self.sensorMagnetometro = SensorMagnetometro(DriverMagnetometroMock())