Ejemplo n.º 1
0
    def test_one_simulation(self):
        """
        sim_id = 'dd993489-7cdb-e711-80c6-f0921c167864'
        """
        print('1 Simulation.')

        itemids = ['dd993489-7cdb-e711-80c6-f0921c167864']

        # collect all experiments and simulations
        exp_dict, sim_dict = AnalyzeHelper.collect_experiments_simulations(itemids)

        self.output(exp_dict, sim_dict)

        self.assertTrue(isinstance(exp_dict, dict))
        self.assertTrue(isinstance(sim_dict, dict))
        self.assertEqual(0, len(exp_dict))
        self.assertEqual(1, len(sim_dict))
Ejemplo n.º 2
0
    def test_one_experiment_one_simulation_one_suite_2(self):
        """
        suite_id = 'd0993489-7cdb-e711-80c6-f0921c167864'
        exp_id = '9967a9c1-6fdb-e711-80c6-f0921c167864'     # exp not belong to suite
        sim_id = 'dd993489-7cdb-e711-80c6-f0921c167864'
        """
        print('1 Experiment, 1 Simulation and 1 Suite (exp not belong to suite.)')
        itemids = ['d0993489-7cdb-e711-80c6-f0921c167864', '9967a9c1-6fdb-e711-80c6-f0921c167864', 'dd993489-7cdb-e711-80c6-f0921c167864' ]

        # collect all experiments and simulations
        exp_dict, sim_dict = AnalyzeHelper.collect_experiments_simulations(itemids)

        self.output(exp_dict, sim_dict)

        self.assertTrue(isinstance(exp_dict, dict))
        self.assertTrue(isinstance(sim_dict, dict))
        self.assertEqual(3, len(exp_dict))
        self.assertEqual(1, len(sim_dict))