Esempio n. 1
0
 def test_override(self):
     """ Test the overrides.
     """
     
     from weblayer.tests.fixtures import require, override
     
     settings = self.make_one([require, override])
     settings(self.required_items)
     self.assertTrue(settings['test_override_function'] == 'something else')
Esempio n. 2
0
 def test_required_items(self):
     """ This is our control: calling `settings` with `self.required_items`
       should be fine.
     """
     
     from weblayer.tests.fixtures import require
     settings = self.make_one([require])
     
     settings(self.required_items)
     self.assertTrue(settings['test_module'] == 'some value')
     self.assertTrue(settings['test_function'] == 'some value')
     self.assertTrue(settings['test_method'] == 'some value')