예제 #1
0
class SensorGPSTest(unittest.TestCase):
    def setUp(self):

        self.sensorGPS = SensorGPS(DriverGPSMock())

    def test_getLastInfo_NoNone(self):

        self.assertIsNotNone(self.sensorGPS.getLastInfo())

    def test_getEstado_NoNone(self):

        self.assertIsNotNone(self.sensorGPS.getStatus())

    def test_getCoordenadas_NoNone(self):

        self.assertIsNotNone(self.sensorGPS.getCoordenadas())

    def test_getCoordenadas(self):

        sensorGPS = self.sensorGPS
        esperado = (data['latitud'], data['longitud'], data['altitud'])
        self.assertEquals(sensorGPS.getCoordenadas(), esperado)
예제 #2
0
class SensorGPSTest(unittest.TestCase):

    def setUp(self):

        self.sensorGPS = SensorGPS(DriverGPSMock())

    def test_getLastInfo_NoNone(self):

        self.assertIsNotNone(self.sensorGPS.getLastInfo())

    def test_getEstado_NoNone(self):

        self.assertIsNotNone(self.sensorGPS.getStatus())

    def test_getCoordenadas_NoNone(self):

        self.assertIsNotNone(self.sensorGPS.getCoordenadas())

    def test_getCoordenadas(self):

        sensorGPS = self.sensorGPS
        esperado = (data['latitud'], data['longitud'], data['altitud'])
        self.assertEquals(sensorGPS.getCoordenadas(), esperado)
예제 #3
0
    def setUp(self):

        self.sensorGPS = SensorGPS(DriverGPSMock())
예제 #4
0
    def setUp(self):

        self.sensorGPS = SensorGPS(DriverGPSMock())