def test_remove_re_removes_ticket(db): jira.JIRA_PATTERNS = set(['foo']) jira.remove_re('foo') assert db.jira.remove.called assert 'foo' not in jira.JIRA_PATTERNS
def test_remove_re_does_removing(db): jira.remove_re('foo') assert db.jira.remove.called
def test_remove_re_removes_ticket(db): jira.JIRA_PATTERNS = set(["foo"]) jira.remove_re("foo") assert db.jira.remove.called assert "foo" not in jira.JIRA_PATTERNS