Example #1
0
 def test_get_site_name_configured(self):
     self.assertEqual(get_site_name(), 'foobar.com')
Example #2
0
 def test_get_site_name_unconfigured(self):
     with self.assertRaises(ImproperlyConfigured):
         get_site_name()
Example #3
0
 def test_get_site_name(self):
     self.assertEqual(get_site_name(),
                      'Example.com')
Example #4
0
 def test_get_site_name_configured(self):
     self.assertEqual(get_site_name(), 'foobar.com')
Example #5
0
 def test_get_site_name_unconfigured(self):
     with self.assertRaises(ImproperlyConfigured):
         get_site_name()
Example #6
0
 def test_get_site_name(self):
     self.assertEqual(get_site_name(), 'Example.com')