|
@@ -1,7 +1,7 @@
|
1
|
1
|
|
2
|
2
|
import unittest
|
3
|
3
|
|
4
|
|
-from lodel.leapi.datahandlers.base_classes import Reference
|
|
4
|
+from lodel.leapi.datahandlers.base_classes import Reference, MultipleRef
|
5
|
5
|
from leapi.query.utils import init_dyncode
|
6
|
6
|
from lodel.exceptions import *
|
7
|
7
|
from lodel.leapi.leobject import LeObject
|
|
@@ -44,11 +44,11 @@ class ReferenceTestCase(unittest.TestCase):
|
44
|
44
|
self.assertEqual(test_value, value)
|
45
|
45
|
|
46
|
46
|
|
47
|
|
-class MultipleRefTestCase(unnittest.case):
|
|
47
|
+class MultipleRefTestCase(unittest.TestCase):
|
48
|
48
|
|
49
|
49
|
def test_multiref_check_data_value_not_iter(self):
|
50
|
|
- multiref = MultipleRef(3)
|
51
|
|
- for test_value in [obj3, 15]:
|
52
|
|
- value = test_ref._check_data_value(test_value)
|
|
50
|
+ test_multiref = MultipleRef(3)
|
|
51
|
+ for test_value in [(obj3, 15)]:
|
|
52
|
+ value = test_multiref._check_data_value(test_value)
|
53
|
53
|
self.assertEqual(test_value, value)
|
54
|
54
|
|