import unittest
import shutil
from rdyn.alg.RDyn_v2 import RDynV2


class RDynTestCase(unittest.TestCase):

    def test_rdyn_simplified(self):

        print("1")
        rdb = RDynV2(size=500, iterations=100)
        rdb.execute(simplified=True)
        print("2")
        rdb = RDynV2(size=500, iterations=100, max_evts=2)
        rdb.execute(simplified=True)
        print("3")
        rdb = RDynV2(size=500, iterations=100, new_node=0.1, del_node=0.1, max_evts=2, paction=0.8)
        rdb.execute(simplified=False)
        print("Done")

        shutil.rmtree("results")


if __name__ == '__main__':
    unittest.main()

[((609, 624), 'unittest.main', 'unittest.main', ([], {}), '()\n', (622, 624), False, 'import unittest\n'), ((178, 210), 'rdyn.alg.RDyn_v2.RDynV2', 'RDynV2', ([], {'size': '(500)', 'iterations': '(100)'}), '(size=500, iterations=100)\n', (184, 210), False, 'from rdyn.alg.RDyn_v2 import RDynV2\n'), ((281, 325), 'rdyn.alg.RDyn_v2.RDynV2', 'RDynV2', ([], {'size': '(500)', 'iterations': '(100)', 'max_evts': '(2)'}), '(size=500, iterations=100, max_evts=2)\n', (287, 325), False, 'from rdyn.alg.RDyn_v2 import RDynV2\n'), ((396, 485), 'rdyn.alg.RDyn_v2.RDynV2', 'RDynV2', ([], {'size': '(500)', 'iterations': '(100)', 'new_node': '(0.1)', 'del_node': '(0.1)', 'max_evts': '(2)', 'paction': '(0.8)'}), '(size=500, iterations=100, new_node=0.1, del_node=0.1, max_evts=2,\n    paction=0.8)\n', (402, 485), False, 'from rdyn.alg.RDyn_v2 import RDynV2\n'), ((551, 575), 'shutil.rmtree', 'shutil.rmtree', (['"""results"""'], {}), "('results')\n", (564, 575), False, 'import shutil\n')]