def test_human_raises(self): with patch('common.release_api.confirm', return_value=False) as mc: ra.test_human()
def test_human(self): with patch('common.release_api.confirm') as mc: ra.test_human() assert mc.called