Пример #1
0
 def test_different_step(self):
     """Tests base scenario but with stepSize = 0.2"""
     self.assertAlmostEqual(
         attempt.runSimulation(20, 25000000, 2.5, 0.5, 0.0001, 1000000,
                               0.2), 1597.0609896692674)
Пример #2
0
 def test_different_d(self):
     """Tests base scenario but with d = 0.001"""
     self.assertAlmostEqual(
         attempt.runSimulation(20, 25000000, 2.5, 0.5, 0.001, 1000000, 0.1),
         18068.975929710017)
Пример #3
0
 def test_different_v(self):
     """Tests base scenario but with v = 500000"""
     self.assertAlmostEqual(
         attempt.runSimulation(20, 25000000, 2.5, 0.5, 0.0001, 500000, 0.1),
         3564.819319142185)
Пример #4
0
 def test_different_b(self):
     """Tests base scenario but with b = 0.25"""
     self.assertAlmostEqual(
         attempt.runSimulation(20, 25000000, 2.5, 0.25, 0.0001, 1000000,
                               0.1), 4565.697940179704)
Пример #5
0
 def test_different_a(self):
     """Tests base scenario but with a = 2.0"""
     self.assertAlmostEqual(
         attempt.runSimulation(20, 25000000, 2.0, 0.5, 0.0001, 1000000,
                               0.1), 299.01462222477153)
Пример #6
0
 def test_different_pop(self):
     """Tests base scenario but with pop=20mil"""
     self.assertAlmostEqual(
         attempt.runSimulation(20, 20000000, 2.5, 0.5, 0.0001, 1000000,
                               0.1), 680.9757185541044)
Пример #7
0
 def test_different_weeks(self):
     """Tests base scenario but with weeks=10"""
     self.assertAlmostEqual(
         attempt.runSimulation(10, 25000000, 2.5, 0.5, 0.0001, 1000000,
                               0.1), 101.92694936449374)
Пример #8
0
 def test_base_scenario(self):
     """Tests base scenario"""
     self.assertAlmostEqual(
         attempt.runSimulation(20, 25000000, 2.5, 0.5, 0.0001, 1000000,
                               0.1), 1813.0136186384832)