Exemplo n.º 1
0
 def test_Speed(self):
     gpspoll = rungps.GpsPoll()
     self.assertNotEqual(gpspoll.getSpeed(), NaN, "GPS isn't returning speed")
Exemplo n.º 2
0
 def test_getSpeed(self):
     gpspoll = rungps.GpsPoll()
     self.assertGreater(gpspoll.getSpeed(), 0, "Speed shouldn't be negative, given there's not relative starting point")
Exemplo n.º 3
0
 def test_Height(self):
     gpspoll = rungps.GpsPoll()
     self.assertNotEqual(gpspoll.getHeight(), NaN, "GPS isn't returning height")
Exemplo n.º 4
0
 def test_getHeight(self):
     gpspoll = rungps.GpsPoll()
     self.assertGreater(gpspoll.getHeight, 0, "you're underground!")
Exemplo n.º 5
0
 def test_UpperLongitudeLimit(self):
     gpspoll = rungps.GpsPoll()
     self.assertGreater(-102, gpspoll.getLongitude(), "GPS is East of CO")
Exemplo n.º 6
0
	def test_init(self):
		text = "testing for null values"
		gpspoll = rungps.GpsPoll()
Exemplo n.º 7
0
 def test_UpperLatitudeLimit(self):
     gpspoll = rungps.GpsPoll()
     self.assertLess(41, gpspoll.getLatitude(), "GPS is North of CO")
Exemplo n.º 8
0
 def test_LowerLongitudeLimit(self):
     gpspoll = rungps.GpsPoll()
     self.assertLess(-109, gpspoll.getLongitude(), "GPS is West of CO")
Exemplo n.º 9
0
 def test_LowerLatitudeLimit(self):
     gpspoll = rungps.GpsPoll()
     self.assertGreater(37, gpspoll.getLatitude(), "GPS is South of CO")
Exemplo n.º 10
0
 def test_PositionValue(self):
     gpspoll = rungps.GpsPoll()
     self.assertNotEqual(gpspoll.running, ("nan", "nan"),
                         "GPS isn't returning coordinates")
Exemplo n.º 11
0
 def test_UpperHeightLimit(self):
     gpspoll = rungps.GpsPoll()
     self.assertGreater(321869, gpspoll.getHeight(), "GPS in Orbit")
Exemplo n.º 12
0
 def test_LowerHeightLimit(self):
     gpspoll = rungps.GpsPoll()
     self.assertLess(0, gpspoll.getHeight(), "GPS in Australia")
Exemplo n.º 13
0
 def test_init(self):
     text = "testing for null values"
     gpspoll = rungps.GpsPoll()
     self.assertEqual(gpspoll.running, True, "GPS isn't running!")