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