// ĠCopyright Ġ 2 0 0 0 - 2 0 2 1 ĠJetBrains Ġs . r . o . ĠUse Ġof Ġthis Ġsource Ġcode Ġis Ġgoverned Ġby Ġthe ĠApache Ġ 2 . 0 Ġlicense Ġthat Ġcan Ġbe Ġfound Ġin Ġthe ĠLICENSE Ġfile . Ċ package Ġcom . jetbrains . python Ċ Ċ import Ġcom . intellij . code Insight . lookup . Lookup Ċ import Ġcom . jetbrains . python . fixtures . Py TestCase Ċ Ċ class ĠPy Multiple Arguments Completion Test : ĠPy TestCase () Ġ{ ĊĠ Ġfun Ġtest Function With Two Args () Ġ{ ĊĠĠĠ Ġdo Test Variants Contain Finished (" x , Ġy ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Function With Three Args Two Suggest ed () Ġ{ ĊĠĠĠ Ġdo Test Variants Contain Finished (" y , Ġz ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Suggest Arguments For Parameters With DefaultValue () Ġ{ ĊĠĠĠ Ġdo Test Variants Contain Finished (" x , Ġy , Ġz ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Skip Arguments For Parameters With DefaultValue () Ġ{ ĊĠĠĠ Ġdo Test Variants Contain Finished (" x , Ġy ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Skip DefaultValue IfNot From Function Context () Ġ{ ĊĠĠĠ Ġdo Test Variants Contain Finished (" x , Ġy ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Class Constructor () Ġ{ ĊĠĠĠ Ġdo Test Variants Contain Finished (" x , Ġy , Ġz ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Class Member () Ġ{ ĊĠĠĠ Ġdo Test Variants Contain Finished (" x , Ġy , Ġz ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Argument Parameter () Ġ{ ĊĠĠĠ Ġdo Test Variants Contain Finished (" bar , Ġbaz ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest List Comp reh ension () Ġ{ ĊĠĠĠ Ġdo Test Variants Contain Finished (" bar , Ġbaz ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Over loads () Ġ{ ĊĠĠĠ Ġdo Test Variants Contain (" a , Ġb ", Ġ" c , Ġd ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Single Star Parameter () Ġ{ ĊĠĠĠ Ġdo Test Variants Contain Finished (" a , Ġb = b ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Slash Parameter () Ġ{ ĊĠĠĠ Ġdo Test Variants Contain Finished (" a , Ġb ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Slash And Single Star Parameter () Ġ{ ĊĠĠĠ Ġdo Test Variants Contain Finished (" a , Ġb , Ġc = c ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Not Suggest IfNot En ough Arguments () Ġ{ ĊĠĠĠ Ġdo Test Variants Not Contain (" x , Ġy ", Ġ" x , Ġy , Ġz ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Not Suggest IfNot En ough Arguments Before Caret () Ġ{ ĊĠĠĠ Ġdo Test Variants Not Contain (" x , Ġy ", Ġ" x , Ġy , Ġz ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Not Suggest IfNot En ough Arguments InThe Scope Of Function () Ġ{ ĊĠĠĠ Ġdo Test Variants Not Contain (" x , Ġy ", Ġ" x , Ġy , Ġz ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Not Suggest IfNot En ough Arguments InThe Scope Of Nested Function () Ġ{ ĊĠĠĠ Ġdo Test Variants Not Contain (" x , Ġy ", Ġ" x , Ġy , Ġz ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Not Suggest If Target OutOf Scope Function () Ġ{ ĊĠĠĠ Ġdo Test Variants Not Contain (" x , Ġy ", Ġ" x , Ġy , Ġz ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Not Suggest If Have Arguments Right () Ġ{ ĊĠĠĠ Ġdo Test Variants Not Contain (" y , Ġz ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Not Suggest In Keyword Argument () Ġ{ ĊĠĠĠ Ġdo Test Variants Not Contain (" x , Ġy , Ġz ", Ġ" y , Ġz ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Not Suggest Keyword Container () Ġ{ ĊĠĠĠ Ġdo Test Variants Not Contain (" x , Ġy ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Not Suggest Position al Container () Ġ{ ĊĠĠĠ Ġdo Test Variants Not Contain (" x , Ġy ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Not Suggest If Only One Variable () Ġ{ ĊĠĠĠ ĠassertEquals ( 1 , Ġdo Test By Test Name (). count Ġ{ Ġit Ġ== Ġ" x " Ġ}) ĊĠ Ġ} ĊĊĠ Ġfun Ġtest No Exception If More Arguments Than Parameters () Ġ{ ĊĠĠĠ Ġdo Test By Test Name () ĊĠ Ġ} ĊĊĠ Ġfun Ġtest No Exception If More Arguments With Implicit Than Parameters () Ġ{ ĊĠĠĠ Ġdo Test By Test Name () ĊĠ Ġ} ĊĊĠ Ġprivate Ġfun Ġdo Test By Test Name (): ĠList < String ?> Ġ{ ĊĠĠĠ Ġval Ġtest Name Ġ= Ġ" multiple Arguments Completion /${ getTest Name ( true )}" ĊĠĠĠ Ġmy Fixture . configure By File ("$ test Name . py ") ĊĠĠĠ Ġmy Fixture . complete Basic () ĊĠĠĠ Ġreturn Ġmy Fixture . lookup Element Strings !! ĊĠ Ġ} ĊĊĠ Ġprivate Ġfun Ġdo Test Variants Contain ( var arg Ġelements : ĠString ) Ġ= Ġassert Contains Elements ( do Test By Test Name (), Ġ* elements ) ĊĊĠ Ġprivate Ġfun Ġdo Test Variants Contain Finished ( element : ĠString ) Ġ{ ĊĠĠĠ Ġdo Test Variants Contain ( element ) ĊĠĠĠ Ġmy Fixture . lookup . currentItem Ġ= Ġmy Fixture . lookup Elements . find Ġ{ Ġit . lookup String Ġ== Ġelement Ġ} ĊĠĠĠ Ġmy Fixture . finish Lookup ( Lookup . NORMAL _ SELECT _ CHAR ) ĊĠĠĠ Ġmy Fixture . check Result By File (" multiple Arguments Completion /${ getTest Name ( true )}. after . py ") ĊĠ Ġ} ĊĊĠ Ġprivate Ġfun Ġdo Test Variants Not Contain ( var arg Ġelements : ĠString ) Ġ= Ġassert Does nt Contain ( do Test By Test Name (), Ġ* elements ) Ċ }