Example #1
0
 def test_add_gline_no_mod_time(self):
     s = StateDouble()
     c = GlineHandler(s)
     c.handle((1,None), ['*', '[email protected]','26','Test gline'])
     self.assertEquals(('add', '[email protected]', 27), s.rv)
Example #2
0
 def test_remove_gline(self):
     s = StateDouble()
     c = GlineHandler(s)
     c.handle((1,None), ['*', '[email protected]','26','43','Test gline'])
     self.assertEquals(('del', '[email protected]'), s.rv)