def test_remove_jupe(self): s = StateDouble() c = JupeHandler(s) c.handle((1,None), ['*', '-test.example.com','26','43','Test jupe']) self.assertEquals(('del', 'test.example.com'), s.rv)
def test_force_add_jupe(self): s = StateDouble() c = JupeHandler(s) c.handle((1,None), ['*', '!+test.example.com','26','43','Test jupe']) self.assertEquals(('add', 'test.example.com', 27), s.rv)