diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-10-05 20:58:39 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2014-10-05 20:58:39 +0200 |
| commit | 2b67aabc0c34d93e91b847731fb5b5435f560255 (patch) | |
| tree | b53644ab3c0d63dd95cec81f3fab4a05b05baeb6 /src-py/test_db_controller.py | |
| parent | 38d261158f5b0276d8db6df83c854bcb0340fe17 (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.py | 4 |
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'])) |
