def test_simulation_run(self):
    assert_equal(self.sim.out_opened, False)
    self.sim.set_output_file(False)
    result = self.sim.run()
    assert_equal(self.sim.result, 'runs')
    assert_equal(result, 'runs')
    assert_equal(self.sim.out_opened, False)
    assert (simulation.Simulation._run(self.sim) is None)
def test_simulation_run(self):
    assert_equal(self.sim.out_opened, False)
    self.sim.set_output_file(False)
    result = self.sim.run()
    assert_equal(self.sim.result, 'runs')
    assert_equal(result, 'runs')
    assert_equal(self.sim.out_opened, False)
    assert (simulation.Simulation._run(self.sim) is None)