Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

message_test.py 808B

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)