Esempio n. 1
0
 def test_Speed(self):
     gpspoll = rungps.GpsPoll()
     self.assertNotEqual(gpspoll.getSpeed(), NaN, "GPS isn't returning speed")
Esempio 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")
Esempio n. 3
0
 def test_Height(self):
     gpspoll = rungps.GpsPoll()
     self.assertNotEqual(gpspoll.getHeight(), NaN, "GPS isn't returning height")
Esempio n. 4
0
 def test_getHeight(self):
     gpspoll = rungps.GpsPoll()
     self.assertGreater(gpspoll.getHeight, 0, "you're underground!")
Esempio n. 5
0
 def test_UpperLongitudeLimit(self):
     gpspoll = rungps.GpsPoll()
     self.assertGreater(-102, gpspoll.getLongitude(), "GPS is East of CO")
Esempio n. 6
0
	def test_init(self):
		text = "testing for null values"
		gpspoll = rungps.GpsPoll()
Esempio n. 7
0
 def test_UpperLatitudeLimit(self):
     gpspoll = rungps.GpsPoll()
     self.assertLess(41, gpspoll.getLatitude(), "GPS is North of CO")
Esempio n. 8
0
 def test_LowerLongitudeLimit(self):
     gpspoll = rungps.GpsPoll()
     self.assertLess(-109, gpspoll.getLongitude(), "GPS is West of CO")
Esempio n. 9
0
 def test_LowerLatitudeLimit(self):
     gpspoll = rungps.GpsPoll()
     self.assertGreater(37, gpspoll.getLatitude(), "GPS is South of CO")
Esempio n. 10
0
 def test_PositionValue(self):
     gpspoll = rungps.GpsPoll()
     self.assertNotEqual(gpspoll.running, ("nan", "nan"),
                         "GPS isn't returning coordinates")
Esempio n. 11
0
 def test_UpperHeightLimit(self):
     gpspoll = rungps.GpsPoll()
     self.assertGreater(321869, gpspoll.getHeight(), "GPS in Orbit")
Esempio n. 12
0
 def test_LowerHeightLimit(self):
     gpspoll = rungps.GpsPoll()
     self.assertLess(0, gpspoll.getHeight(), "GPS in Australia")
Esempio n. 13
0
 def test_init(self):
     text = "testing for null values"
     gpspoll = rungps.GpsPoll()
     self.assertEqual(gpspoll.running, True, "GPS isn't running!")