def METHOD_NAME(self):
    with self.assertWarns(DeprecationWarning):
        compat.compat_basestring
    with self.assertWarns(DeprecationWarning):
        compat.WINDOWS_VT_MODE
    self.assertEqual(urllib.request.getproxies, getproxies)
    with self.assertWarns(DeprecationWarning):
        compat.compat_pycrypto_AES  # Must not raise error