Esempio n. 1
0
 def test_that_can_set_normalize_to_monitor(self):
     state_gui_model = StateGuiModel({"test": [1]})
     state_gui_model.normalization_incident_monitor = 2
     state_gui_model.normalization_interpolate = True
     self.assertTrue(state_gui_model.normalization_incident_monitor == 2)
     self.assertTrue(state_gui_model.normalization_interpolate)
     # Reassign
     state_gui_model.normalization_incident_monitor = 3
     self.assertTrue(state_gui_model.normalization_incident_monitor == 3)
Esempio n. 2
0
 def test_that_can_set_normalize_to_monitor(self):
     state_gui_model = StateGuiModel({"test": [1]})
     state_gui_model.normalization_incident_monitor = 2
     state_gui_model.normalization_interpolate = True
     self.assertTrue(state_gui_model.normalization_incident_monitor == 2)
     self.assertTrue(state_gui_model.normalization_interpolate)
     # Reassign
     state_gui_model.normalization_incident_monitor = 3
     self.assertTrue(state_gui_model.normalization_incident_monitor == 3)
Esempio n. 3
0
 def test_that_can_set_only_interpolation(self):
     state_gui_model = StateGuiModel({"test": [1]})
     state_gui_model.normalization_interpolate = True
     self.assertTrue(state_gui_model.normalization_incident_monitor is None)
     self.assertTrue(state_gui_model.normalization_interpolate)
Esempio n. 4
0
 def test_that_can_set_only_interpolation(self):
     state_gui_model = StateGuiModel({"test": [1]})
     state_gui_model.normalization_interpolate = True
     self.assertTrue(state_gui_model.normalization_incident_monitor is None)
     self.assertTrue(state_gui_model.normalization_interpolate)