summaryrefslogtreecommitdiff
path: root/src-py/test_db_controller.py
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2014-10-05 20:58:39 +0200
committerLV-426 <lv-426@taproot.org.il>2014-10-05 20:58:39 +0200
commit2b67aabc0c34d93e91b847731fb5b5435f560255 (patch)
treeb53644ab3c0d63dd95cec81f3fab4a05b05baeb6 /src-py/test_db_controller.py
parent38d261158f5b0276d8db6df83c854bcb0340fe17 (diff)
harden test_load_node_set_by_attribute()
Diffstat (limited to 'src-py/test_db_controller.py')
-rw-r--r--src-py/test_db_controller.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src-py/test_db_controller.py b/src-py/test_db_controller.py
index d268daf7..f770905e 100644
--- a/src-py/test_db_controller.py
+++ b/src-py/test_db_controller.py
@@ -40,6 +40,10 @@ class TestDBController(unittest.TestCase):
'age': [128] }
n_set = self.db_ctl.exec_op(dbc.DBO_load_node_set_by_attribute(filter_map))
self.assertEqual(len(n_set), 1)
+
+ filter_map = { 'age': [128, 256, 404] }
+ n_set = self.db_ctl.exec_op(dbc.DBO_load_node_set_by_attribute(filter_map))
+ self.assertEqual(len(n_set), 2)
def test_load_node_set_by_id_attribute(self):
n_set = self.db_ctl.exec_op(dbc.DBO_load_node_set_by_id_attribute(['skill_00', 'person_01']))