def METHOD_NAME(self):
    import youtube_dl.compat
    all_names = sorted(
        youtube_dl.compat.__all__ + youtube_dl.compat.legacy)
    present_names = set(map(compat_str, filter(
        lambda c: '_' in c and not c.startswith('_'),
        dir(youtube_dl.compat)))) - set(['unicode_literals'])
    self.assertEqual(all_names, sorted(present_names))