diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-10-16 16:30:22 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2014-10-16 16:30:22 +0200 |
| commit | 3b3d3b5e91dac517627f1a080fffbff9a72b7e1a (patch) | |
| tree | 36e5f9bbb2c1c59a4e8f369a3318c9338aae5f73 /src-py/test_db_controller.py | |
| parent | d3d8bd18bfbf2da267ea30f5625f092d24b21474 (diff) | |
DBO_attr_diff_commit on_completion response processing, test_attr_diff_commit() update
Diffstat (limited to 'src-py/test_db_controller.py')
| -rw-r--r-- | src-py/test_db_controller.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src-py/test_db_controller.py b/src-py/test_db_controller.py index edfd4a22..c7834749 100644 --- a/src-py/test_db_controller.py +++ b/src-py/test_db_controller.py @@ -211,8 +211,13 @@ class TestDBController(unittest.TestCase): 'attr_1': 'a'}, 'attr_remove': ['attr_rm']}} op = dbc.DBO_attr_diff_commit(attr_diff) - n_set = self.db_ctl.exec_op(op) - pass + n_map = self.db_ctl.exec_op(op) + self.assertEqual(len(n_map), 1) + n = n_map.get(n_id) + self.assertTrue(None != n) + self.assertTrue(None == n.get('attr_rm')) + self.assertTrue(None != n.get('attr_0')) + self.assertTrue(None != n.get('attr_1')) def tearDown(self): pass |
