You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728
  1. from million.model.message import Message
  2. import million.analyze.message_evaluation as msg_val
  3. from test.TestCase import TestCase
  4. class MessageTest(TestCase):
  5. def test_message_nominal(self, overrides=None, exclude=None):
  6. message = self._message_with_text("1")
  7. assert 1 == msg_val.get(message)
  8. def test_message_with_text(self, overrides=None, exclude=None):
  9. message = self._message_with_text("1 text")
  10. assert 1 == msg_val.get(message)
  11. def test_message_floored_dot(self, overrides=None, exclude=None):
  12. message = self._message_with_text("1.5")
  13. assert 1 == msg_val.get(message)
  14. def test_message_floored_comma(self, overrides=None, exclude=None):
  15. message = self._message_with_text("1,5")
  16. assert 1 == msg_val.get(message)