def test_no_softroot(self):
     with SettingsOverride(CMS_SOFTROOT=True):
         control = AttributeObject()
         contribute_list_filter(control)
     with SettingsOverride(CMS_SOFTROOT=False):
         experiment = AttributeObject()
         contribute_list_filter(experiment)
     self.assertTrue('soft_root' in control.list_filter, control.list_filter)
     self.assertFalse('soft_root' in experiment.list_filter, experiment.list_filter)
 def test_no_moderator(self):
     with SettingsOverride(CMS_MODERATOR=True):
         control = AttributeObject()
         contribute_list_filter(control)
     with SettingsOverride(CMS_MODERATOR=False):
         experiment = AttributeObject()
         contribute_list_filter(experiment)
     self.assertTrue('moderator_state' in control.list_filter, control.list_filter)
     self.assertFalse('moderator_state' in experiment.list_filter, experiment.list_filter)
Exemple #3
0
 def test_no_softroot(self):
     with SettingsOverride(CMS_SOFTROOT=True):
         control = AttributeObject()
         contribute_list_filter(control)
     with SettingsOverride(CMS_SOFTROOT=False):
         experiment = AttributeObject()
         contribute_list_filter(experiment)
     self.assertTrue('soft_root' in control.list_filter,
                     control.list_filter)
     self.assertFalse('soft_root' in experiment.list_filter,
                      experiment.list_filter)
Exemple #4
0
 def test_no_moderator(self):
     with SettingsOverride(CMS_MODERATOR=True):
         control = AttributeObject()
         contribute_list_filter(control)
     with SettingsOverride(CMS_MODERATOR=False):
         experiment = AttributeObject()
         contribute_list_filter(experiment)
     self.assertTrue('moderator_state' in control.list_filter,
                     control.list_filter)
     self.assertFalse('moderator_state' in experiment.list_filter,
                      experiment.list_filter)