def test_DoallEvents_one_Bigger_than_10(self):
     a = CounterSim()
     a.setup(0)
     print('********************************************************')
     print('##TEST for one event (time is bigger than 10)')
     print('##Initial event: <Event: 20.0>')
     print('Pay attention here to check whether the simulation driver is doing the rihgt thing')
     a.doAllEvents()
 def test_DoallEvents_one_initial_envent(self):
     '''Testing DoallEventsMethod'''
     a = CounterSim()
     a.setup(0)
     print('********************************************************')
     print('##TEST for one event (time is less than 10)')
     print('##Initial Event: <Event: 0.0>')
     print('Pay attention here to check whether the simulation driver is doing the rihgt thing')
     a.doAllEvents()
 def test_DoallEvents_one_Bigger_than_10(self):
     a = CounterSim()
     a.setup(0)
     print('********************************************************')
     print('##TEST for one event (time is bigger than 10)')
     print('##Initial event: <Event: 20.0>')
     print(
         'Pay attention here to check whether the simulation driver is doing the rihgt thing'
     )
     a.doAllEvents()
 def test_DoallEvents_one_initial_envent(self):
     '''Testing DoallEventsMethod'''
     a = CounterSim()
     a.setup(0)
     print('********************************************************')
     print('##TEST for one event (time is less than 10)')
     print('##Initial Event: <Event: 0.0>')
     print(
         'Pay attention here to check whether the simulation driver is doing the rihgt thing'
     )
     a.doAllEvents()
 def test_DoAllEvents_multiple_all_less_than_10(self):
     '''Testing DoallEventsMethod'''
     a = CounterSim()
     a.setup(0)
     a.setup(2.4)
     a.setup(5.4)
     a.setup(2)
     a.setup(3)
     print('********************************************************')
     print('##TEST for Multiple events_all (times of all less than time 10) ')
     print('##Initial events: <Event: 0.0> <Event: 2.0>  <Event: 2.4> <Event: 3.0> <Event: 5.4>')
     
     print('Pay attention here to check whether the simulation driver is doing the rihgt thing')
     a.doAllEvents()
    def test_now_not_emp(self):
        ''' Testing Now Method when not start from initial value'''
        a = CounterSim()
        a.setup(4)
        print('********************************************************')
        print('********************************************************')
        print('********************************************************')

        print('********************************************************')
        print('********************************************************')
        print('Not A part of DoAllEvents TEST')
        a.doAllEvents()
        t = a.now()

        self.assertEqual(10.0, t)
    def test_now_not_emp(self):
        ''' Testing Now Method when not start from initial value'''
        a = CounterSim()
        a.setup(4)
        print('********************************************************')
        print('********************************************************')
        print('********************************************************')
   
        print('********************************************************')
        print('********************************************************')
        print('Not A part of DoAllEvents TEST')
        a.doAllEvents()
        t = a.now()
        

        self.assertEqual(10.0,t)
    def test_DoAllEvents_multiple_all_less_than_10(self):
        '''Testing DoallEventsMethod'''
        a = CounterSim()
        a.setup(0)
        a.setup(2.4)
        a.setup(5.4)
        a.setup(2)
        a.setup(3)
        print('********************************************************')
        print(
            '##TEST for Multiple events_all (times of all less than time 10) ')
        print(
            '##Initial events: <Event: 0.0> <Event: 2.0>  <Event: 2.4> <Event: 3.0> <Event: 5.4>'
        )

        print(
            'Pay attention here to check whether the simulation driver is doing the rihgt thing'
        )
        a.doAllEvents()