def test___all__(self):
        # Verify which names are exposed
        for module in 'request', 'response', 'parse', 'error', 'robotparser':
            context = {}
            exec('from urllib.%s import *' % module, context)
            del context['__builtins__']
            if module == 'request' and os.name == 'nt':
                u, p = context.pop('url2pathname'), context.pop('pathname2url')
                self.assertEqual(u.__module__, 'nturl2path')
                self.assertEqual(p.__module__, 'nturl2path')
            for k, v in context.items():
                self.assertEqual(v.__module__, module % 'urllib.%s',
                    "%r is exposed in 'urllib.%s' but defined in %r" %
                    (k, module, v.__module__))
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_urllib2.py/TrivialTests.test___all__/swapped operands of `%`