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