'admin_static.static points to the collectstatic version
(as django.contrib.collectstatic is in INSTALLED_APPS).'

def test_admin_static_template_tag(self):

    old_url = staticfiles_storage.base_url
    staticfiles_storage.base_url = '/test/'
    try:
        self.assertEqual(static('path'), '/test/path')
    finally:
        staticfiles_storage.base_url = old_url
