def test_get_site_name_configured(self): self.assertEqual(get_site_name(), 'foobar.com')
def test_get_site_name_unconfigured(self): with self.assertRaises(ImproperlyConfigured): get_site_name()
def test_get_site_name(self): self.assertEqual(get_site_name(), 'Example.com')