|
@@ -1,6 +1,7 @@
|
1
|
1
|
|
2
|
2
|
|
3
|
3
|
from million.model.message import Message
|
|
4
|
+import million.analyze.message_evaluation as msg_val
|
4
|
5
|
from test.TestCase import TestCase
|
5
|
6
|
|
6
|
7
|
|
|
@@ -9,19 +10,19 @@ class MessageTest(TestCase):
|
9
|
10
|
def test_message_nominal(self, overrides=None, exclude=None):
|
10
|
11
|
message = self._message_with_text("1")
|
11
|
12
|
|
12
|
|
- assert 1 == message.get_counted_value()
|
|
13
|
+ assert 1 == msg_val.get(message)
|
13
|
14
|
|
14
|
15
|
def test_message_with_text(self, overrides=None, exclude=None):
|
15
|
16
|
message = self._message_with_text("1 text")
|
16
|
17
|
|
17
|
|
- assert 1 == message.get_counted_value()
|
|
18
|
+ assert 1 == msg_val.get(message)
|
18
|
19
|
|
19
|
20
|
def test_message_floored_dot(self, overrides=None, exclude=None):
|
20
|
21
|
message = self._message_with_text("1.5")
|
21
|
22
|
|
22
|
|
- assert 1 == message.get_counted_value()
|
|
23
|
+ assert 1 == msg_val.get(message)
|
23
|
24
|
|
24
|
25
|
def test_message_floored_comma(self, overrides=None, exclude=None):
|
25
|
26
|
message = self._message_with_text("1,5")
|
26
|
27
|
|
27
|
|
- assert 1 == message.get_counted_value()
|
|
28
|
+ assert 1 == msg_val.get(message)
|