Пример #1
0
 def test_get_all_configs(self):
     """
     Tests microsite.get_all_config works as expected.
     """
     microsite.set_by_domain(self.microsite_subdomain)
     configs = microsite.get_all_config()
     self.assertEqual(len(configs.keys()), 3)
Пример #2
0
 def test_get_all_configs(self):
     """
     Tests microsite.get_all_config works as expected.
     """
     microsite.set_by_domain(self.microsite.site.domain)
     configs = microsite.get_all_config()
     self.assertEqual(len(list(configs.keys())), 1)
     self.assertEqual(configs[self.microsite.key], self.microsite.values)
Пример #3
0
 def test_get_all_configs(self):
     """
     Tests microsite.get_all_config works as expected.
     """
     microsite.set_by_domain(self.microsite.site.domain)
     configs = microsite.get_all_config()
     self.assertEqual(len(list(configs.keys())), 1)
     self.assertEqual(configs[self.microsite.key], self.microsite.values)