def METHOD_NAME(self):
    # The way to test bash behavior is:
    #   $ shopt -s nullglob; argv [    # not a glob
    #   $ shopt -s nullglob; argv []   # is a glob
    #   $ shopt -s nullglob; argv [][  # is a glob
    CASES = [
        (r'[]', True),
        (r'[a]', True),
        (r'[][', True),
        (r'][', False),  # no balanced pair
        (r'\[]', False),  # no balanced pair
        (r'[', False),  # no balanced pair
        (r']', False),  # no balanced pair
        (r'echo', False),
        (r'status=0', False),
        (r'*', True),
        (r'\*', False),
        (r'\*.sh', False),
        ('\\', False),
        ('*\\', True),
        ('?', True),
    ]
    for pat, expected in CASES:
        self.assertEqual(expected, glob_.LooksLikeGlob(pat),
                         '%s: expected %r' % (pat, expected))