'url() name arguments don\'t need to be unique. The last registered
pattern takes precedence for conflicting names.'

def test_resolver_reverse_conflict(self):

    resolver = get_resolver('urlpatterns_reverse.named_urls_conflict')
    test_urls = [('name-conflict', (), {}, 'conflict/'), ('name-conflict', ('arg',), {}, 'conflict-last/arg/'), ('name-conflict', (), {'first': 'arg'}, 'conflict-first/arg/'), ('name-conflict', (), {'middle': 'arg'}, 'conflict-middle/arg/'), ('name-conflict', (), {'last': 'arg'}, 'conflict-last/arg/'), ('name-conflict', ('arg', 'arg'), {}, 'conflict/arg/arg/')]
    for (name, args, kwargs, expected) in test_urls:
        with self.subTest(name=name, args=args, kwargs=kwargs):
            self.assertEqual(resolver.reverse(name, *args, **kwargs), expected)
