Пример #1
0
 def test_has_changed_for_a_string_and_float(self):
     text_input = TextInputForFloat()
     self.assertTrue(text_input._has_changed('testone', 22))
Пример #2
0
 def test_has_changed_for_different_strings(self):
     text_input = TextInputForFloat()
     self.assertTrue(text_input._has_changed('testone', 'testtwo'))
Пример #3
0
 def test_has_not_changed_for_same_float_values(self):
     text_input = TextInputForFloat()
     self.assertFalse(text_input._has_changed(22.00, 22))
Пример #4
0
 def test_has_not_changed_for_none_values(self):
     text_input = TextInputForFloat()
     self.assertFalse(text_input._has_changed(None, None))
Пример #5
0
 def test_has_not_changed_for_different_string_representation_of_same_float_value(
         self):
     text_input = TextInputForFloat()
     self.assertFalse(text_input._has_changed('22.0', '22'))