Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

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)