def test_optional_default(self):
        options = core.Options(
            arguments.Argument('myarg'),
            arguments.Argument('optarg', required=False, default=None),
        )
        dummy_tokens = DummyTokens('myval')
        kwargs, blocks = options.parse(dummy_parser, dummy_tokens)
        self.assertEqual(blocks, {})
        self.assertEqual(len(kwargs), 2)
        dummy_context = {}
        self.assertEqual(kwargs['myarg'].resolve(dummy_context), 'myval')
        self.assertEqual(kwargs['optarg'].resolve(dummy_context), None)
Turn all urls and email addresses into clickable links.
dataset/ETHPy150Open ojii/django-classy-tags/classytags/tests.py/ClassytagsTests.test_optional_default--crossover with--dataset/ETHPy150Open mikeorr/WebHelpers2/webhelpers2/html/_autolink.py/auto_link