|
@@ -36,4 +36,19 @@ class LeFilteredQueryTestCase(unittest.TestCase):
|
36
|
36
|
with self.assertRaises(LeApiErrors):
|
37
|
37
|
dyncode.Person(lastname = "foo", firstname = "bar")
|
38
|
38
|
|
39
|
|
-
|
|
39
|
+
|
|
40
|
+ def test_initilized(self):
|
|
41
|
+ """ Testing initialized method """
|
|
42
|
+ inst = dyncode.Person(
|
|
43
|
+ lodel_id = 1, lastname="foo")
|
|
44
|
+ self.assertFalse(inst.initialized)
|
|
45
|
+
|
|
46
|
+ def test_uid_fieldname(self):
|
|
47
|
+ self.assertEqual(dyncode.Person.uid_fieldname(), ["lodel_id"])
|
|
48
|
+
|
|
49
|
+ def test_fieldnames_accessor(self):
|
|
50
|
+ """ Testing fieldnames() accessor method """
|
|
51
|
+ fnames = dyncode.Person.fieldnames(False)
|
|
52
|
+ self.assertEqual(set(fnames),
|
|
53
|
+ {'lastname', 'linked_texts', 'firstname', 'alias'})
|
|
54
|
+
|