@py.test.mark.parametrize('item_name', [item.name for item in six._urllib_parse_moved_attributes])
def test_move_items_urllib_parse(item_name):
 if ((item_name == 'ParseResult') and (sys.version_info < (2, 5))):
  py.test.skip('ParseResult is only found on 2.5+')
 if ((item_name in ('parse_qs', 'parse_qsl')) and (sys.version_info < (2, 6))):
  py.test.skip('parse_qs[l] is new in 2.6')
 if (sys.version_info[:2] >= (2, 6)):
  assert (item_name in dir(six.moves.urllib.parse))
 getattr(six.moves.urllib.parse, item_name)

@ py . test . mark . parametrize ( 'item_name' , [ item . name for item in six . _urllib_parse_moved_attributes ] ) def test_move_items_urllib_parse ( item_name ) : if ( ( item_name == 'ParseResult' ) and ( sys . version_info < ( 2 , 5 ) ) ) : py . test . skip ( 'ParseResult is only found on 2.5+' ) if ( ( item_name in ( 'parse_qs' , 'parse_qsl' ) ) and ( sys . version_info < ( 2 , 6 ) ) ) : py . test . skip ( 'parse_qs[l] is new in 2.6' ) if ( sys . version_info [ : 2 ] >= ( 2 , 6 ) ) : assert ( item_name in dir ( six . moves . urllib . parse ) ) getattr ( six . moves . urllib . parse , item_name )
ensure that everything loads correctly .