diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-10-28 00:34:09 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2014-10-28 00:34:09 +0200 |
| commit | 3057043640e3e42ba24584a624786dddb73704a1 (patch) | |
| tree | 46be0b9c390ec381309def1fffc951abc8beecc1 /src-py/test_db_controller.py | |
| parent | 0f36eab1af1978bb0b1bacc5edcf59df253e573e (diff) | |
test_rz_clone - DBO_rz_clone test
Diffstat (limited to 'src-py/test_db_controller.py')
| -rw-r--r-- | src-py/test_db_controller.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src-py/test_db_controller.py b/src-py/test_db_controller.py index 002777d7..4ff0c4de 100644 --- a/src-py/test_db_controller.py +++ b/src-py/test_db_controller.py @@ -303,6 +303,17 @@ class TestDBController(unittest.TestCase): id_set = self.db_ctl.exec_op(op) self.assertEqual(len(id_set), 0) + def test_rz_clone(self): + l_n, l_r = gen_rand_data(self.db_ctl, lim_n=8, lim_r=16, prob_link_create=0.7) + op = dbc.DBO_rz_clone(filter_label = l_n, limit=32) + ret = self.db_ctl.exec_op(op) + n_set = ret['node_set'] + l_set = ret['link_set'] + + # TODO improve assertions + self.assertTrue(0 < len(n_set)) + self.assertTrue(0 < len(l_set)) + def tearDown(self): pass if __name__ == "__main__": |
