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