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