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()

[((25, 4, 25, 19), 'unittest.main', 'unittest.main', ({}, {}), '()', False, 'import unittest\n'), ((11, 14, 11, 46), 'rdyn.alg.RDyn_v2.RDynV2', 'RDynV2', (), '', False, 'from rdyn.alg.RDyn_v2 import RDynV2\n'), ((14, 14, 14, 58), 'rdyn.alg.RDyn_v2.RDynV2', 'RDynV2', (), '', False, 'from rdyn.alg.RDyn_v2 import RDynV2\n'), ((17, 14, 17, 99), 'rdyn.alg.RDyn_v2.RDynV2', 'RDynV2', (), '', False, 'from rdyn.alg.RDyn_v2 import RDynV2\n'), ((21, 8, 21, 32), 'shutil.rmtree', 'shutil.rmtree', ({(21, 22, 21, 31): '"""results"""'}, {}), "('results')", False, 'import shutil\n')]