def test_parse_position_reverse_parsing_order(self):
     a_bad_position = [ONE_POSITION_LON_GOOD,ONE_POSITION_LAT_GOOD]
     parsed_position = []
     position.fill(parsed_position, 'lon', ONE_POSITION_LON_GOOD)
     position.fill(parsed_position, 'lat', ONE_POSITION_LAT_GOOD)
     self.assertNotEqual(parsed_position, a_bad_position)
 def test_parse_position_unknown_field(self):
     a_position = [ONE_POSITION_LAT_GOOD,ONE_POSITION_LON_GOOD]
     parsed_position = [ONE_POSITION_LAT_GOOD,ONE_POSITION_LON_GOOD]
     position.fill(parsed_position, UNKNOWN_POSITION_FIELD, '')
     self.assertEqual(parsed_position, a_position)
 def test_parse_position(self):
     a_position = [ONE_POSITION_LAT_GOOD,ONE_POSITION_LON_GOOD]
     parsed_position = []
     position.fill(parsed_position, 'lat', ONE_POSITION_LAT_GOOD)
     position.fill(parsed_position, 'lon', ONE_POSITION_LON_GOOD)
     self.assertEqual(parsed_position, a_position)