[Subversion] / Trellis / test_trellis.py  

Diff of /Trellis/test_trellis.py

Parent Directory | Revision Log

version 2543, Thu May 15 23:01:17 2008 UTC version 2554, Wed Jun 18 03:25:46 2008 UTC
Line 674 
Line 674 
         self.assertRaises(DummyError, setattr, c1, 'value', True)          self.assertRaises(DummyError, setattr, c1, 'value', True)
   
   
   class TestTime(unittest.TestCase):
   
       def testIndependentNextEventTime(self):
           # Ensure that next_event_time() never returns a *past* time
           t = Time()
           t.auto_update = False
           t20 = t[20]
           t40 = t[40]
           d(trellis.Cell)
           def check_reached():
               t.reached(t20)
               t.reached(t40)
               nt = t.next_event_time(True)
               self.failIf(nt is not None and nt<=0)
           check_reached.value
           t.advance(25)
           t.advance(15)
   
   
   
   


Generate output suitable for use with a patch program
Legend:
Removed from v.2543  
changed lines
  Added in v.2554

cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help