Browse Source

Tests update

Yann Weber 8 years ago
parent
commit
0bc507829f

+ 0
- 0
tests/editorial_model/__init__.py View File


tests/test_model.py → tests/editorial_model/test_model.py View File


tests/test_mlstrings.py → tests/test_utils_mlstrings.py View File

@@ -80,3 +80,8 @@ class MlStringTestCase(unittest.TestCase):
80 80
         self.assertTrue(mls1 != mls2)
81 81
         self.assertNotEqual(hash(mls1), hash(mls2))
82 82
 
83
+
84
+    def test_hash(self):
85
+        """ Test if the hash method is deterministic """
86
+        mls1 = MlString('Hello world !')
87
+        self.assertEqual(hash(mls1),1631096711380631894)

Loading…
Cancel
Save