Lines Matching refs:item_name
117 def test_move_items(item_name): argument
120 item = getattr(six.moves, item_name)
122 __import__("six.moves." + item_name)
124 if item_name == "zip_longest" and sys.version_info < (2, 6):
127 if item_name == "winreg" and not sys.platform.startswith("win"):
129 if item_name.startswith("tkinter"):
132 if item_name == "tkinter_ttk" and sys.version_info[:2] <= (2, 6):
134 if item_name.startswith("dbm_gnu") and not have_gdbm:
138 assert item_name in dir(six.moves)
143 def test_move_items_urllib_parse(item_name): argument
145 if item_name == "ParseResult" and sys.version_info < (2, 5):
147 if item_name in ("parse_qs", "parse_qsl") and sys.version_info < (2, 6):
150 assert item_name in dir(six.moves.urllib.parse)
151 getattr(six.moves.urllib.parse, item_name)
156 def test_move_items_urllib_error(item_name): argument
159 assert item_name in dir(six.moves.urllib.error)
160 getattr(six.moves.urllib.error, item_name)
165 def test_move_items_urllib_request(item_name): argument
168 assert item_name in dir(six.moves.urllib.request)
169 getattr(six.moves.urllib.request, item_name)
174 def test_move_items_urllib_response(item_name): argument
177 assert item_name in dir(six.moves.urllib.response)
178 getattr(six.moves.urllib.response, item_name)
183 def test_move_items_urllib_robotparser(item_name): argument
186 assert item_name in dir(six.moves.urllib.robotparser)
187 getattr(six.moves.urllib.robotparser, item_name)