def test_add_domain(self):
    '\n        Test add_domain() prefixes domains onto the correct URLs.\n        '
    self.assertEqual(views.add_domain('example.com', '/foo/?arg=value'), 'http://example.com/foo/?arg=value')
    self.assertEqual(views.add_domain('example.com', 'http://djangoproject.com/doc/'), 'http://djangoproject.com/doc/')
    self.assertEqual(views.add_domain('example.com', 'https://djangoproject.com/doc/'), 'https://djangoproject.com/doc/')
    self.assertEqual(views.add_domain('example.com', 'mailto:example@example.com'), 'mailto:example@example.com')
Test add_domain() prefixes domains onto the correct URLs.
def test_add_domain(self):
    '\n        \n        '
    self.assertEqual(views.add_domain('example.com', '/foo/?arg=value'), 'http://example.com/foo/?arg=value')
    self.assertEqual(views.add_domain('example.com', 'http://djangoproject.com/doc/'), 'http://djangoproject.com/doc/')
    self.assertEqual(views.add_domain('example.com', 'https://djangoproject.com/doc/'), 'https://djangoproject.com/doc/')
    self.assertEqual(views.add_domain('example.com', 'mailto:example@example.com'), 'mailto:example@example.com')