def test_remove(self): a = Actions() a.add('prev') a.add('next') a.remove('prev') self.assertEquals(len(a.actions), 1) self.assertTrue('next' in a.actions)
def test_remove_not_there(self): a = Actions() a.add('next') a.remove('wrong') self.assertEquals(len(a.actions), 1) self.assertTrue('next' in a.actions)