コード例 #1
0
 def test_equal_checks(self):
     simulation = Simulation(config=self.config, account=self.account)
     # Progress checks value is equal to iterations value
     self.assertEqual(simulation.verify_progress_checks(
         progress_checks=200), 200, "Progress check value was changed when"
                                     " the iterations value was the same as"
                                     " the progress checks value.")
コード例 #2
0
 def test_less_than_iterations(self):
     simulation = Simulation(config=self.config, account=self.account)
     # Progress checks is less than the number of iterations
     self.assertEqual(
         simulation.verify_progress_checks(progress_checks=100), 100,
         "Changed progress check value that was"
         " less than the number of iterations")
コード例 #3
0
 def test_negative_checks(self):
     simulation = Simulation(config=self.config, account=self.account)
     # Progress checks value is negative
     self.assertEqual(simulation.verify_progress_checks(
         progress_checks=(-100)), 200, "Progress check value was not set as"
                                       " the iterations value when a"
                                       " negative number was entered")
コード例 #4
0
 def test_greater_than_iterations(self):
     simulation = Simulation(config=self.config, account=self.account)
     # Progress checks is greater than the number of iterations
     self.assertEqual(simulation.verify_progress_checks(
         progress_checks=300), 200, "Progress check value was not set as"
                                    " the iterations value when a number"
                                    " greater than the iterations was"
                                    " entered")
コード例 #5
0
 def test_equal_checks(self):
     simulation = Simulation(config=self.config, account=self.account)
     # Progress checks value is equal to iterations value
     self.assertEqual(
         simulation.verify_progress_checks(progress_checks=200), 200,
         "Progress check value was changed when"
         " the iterations value was the same as"
         " the progress checks value.")
コード例 #6
0
 def test_negative_checks(self):
     simulation = Simulation(config=self.config, account=self.account)
     # Progress checks value is negative
     self.assertEqual(
         simulation.verify_progress_checks(progress_checks=(-100)), 200,
         "Progress check value was not set as"
         " the iterations value when a"
         " negative number was entered")
コード例 #7
0
 def test_greater_than_iterations(self):
     simulation = Simulation(config=self.config, account=self.account)
     # Progress checks is greater than the number of iterations
     self.assertEqual(
         simulation.verify_progress_checks(progress_checks=300), 200,
         "Progress check value was not set as"
         " the iterations value when a number"
         " greater than the iterations was"
         " entered")
コード例 #8
0
 def test_less_than_iterations(self):
     simulation = Simulation(config=self.config, account=self.account)
     # Progress checks is less than the number of iterations
     self.assertEqual(simulation.verify_progress_checks(
         progress_checks=100), 100, "Changed progress check value that was"
                                    " less than the number of iterations")