12345678910111213141516171819202122232425262728 |
-
-
- from million.model.message import Message
- import million.analyze.message_evaluation as msg_val
- from test.TestCase import TestCase
-
-
- class MessageTest(TestCase):
-
- def test_message_nominal(self, overrides=None, exclude=None):
- message = self._message_with_text("1")
-
- assert 1 == msg_val.get(message)
-
- def test_message_with_text(self, overrides=None, exclude=None):
- message = self._message_with_text("1 text")
-
- assert 1 == msg_val.get(message)
-
- def test_message_floored_dot(self, overrides=None, exclude=None):
- message = self._message_with_text("1.5")
-
- assert 1 == msg_val.get(message)
-
- def test_message_floored_comma(self, overrides=None, exclude=None):
- message = self._message_with_text("1,5")
-
- assert 1 == msg_val.get(message)
|