@@ -670,8 +670,10 @@ def setUp(self):
670670 }
671671
672672 self .SPEC2_SCT = """
673- Ex().check_function('pandas.DataFrame', 0, missing_msg = "notcalledmsg", expand_msg="")\
674- .check_args('data', missing_msg='paramsnotmatchedmsg')
673+ Ex().check_function('pandas.DataFrame', 0, missing_msg = "notcalledmsg", expand_msg="", params_not_matched_msg='paramsnotmatchedmsg')\
674+ .multi(
675+ check_args('data', missing_msg='paramsnotspecifiedmsg'),
676+ check_args('columns', missing_msg='paramsnotspecifiedmsg'))
675677"""
676678
677679 def test_step1 (self ):
@@ -696,14 +698,17 @@ def test_step2_spec2(self):
696698 self .data ["DC_SCT" ] = self .SPEC2_SCT
697699 self .test_step2 ()
698700
699-
700701 def test_step3 (self ):
701702 self .data ["DC_CODE" ] = "df = pd.DataFrame(data=[1, 2, 3])"
702703 sct_payload = helper .run (self .data )
703704 self .assertFalse (sct_payload ['correct' ])
704705 self .assertEqual ('paramsnotspecifiedmsg' , sct_payload ['message' ])
705706 helper .test_lines (self , sct_payload , 1 , 1 , 6 , 33 )
706707
708+ def test_step3_spec2 (self ):
709+ self .data ["DC_SCT" ] = self .SPEC2_SCT
710+ self .test_step3 ()
711+
707712 def test_step4 (self ):
708713 self .data ["DC_CODE" ] = "df = pd.DataFrame(data=[1, 2, 3], columns=['b'])"
709714 sct_payload = helper .run (self .data )
0 commit comments