def test_now(self): ''' Testing Now Method''' a = CounterSim() t = a.now() self.assertEqual(0.0,t)
def testEmpty_constructor(self): ''' Testing Constructor Method''' a = CounterSim() t = a.getset() time = a.now() self.assertEqual(0.0,time) self.assertEqual('[]',str(t))
def test_now(self): ''' Testing Now Method''' a = CounterSim() t = a.now() self.assertEqual(0.0, t)
def testEmpty_constructor(self): ''' Testing Constructor Method''' a = CounterSim() t = a.getset() time = a.now() self.assertEqual(0.0, time) self.assertEqual('[]', str(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_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)