def _MakeSliceTest(subscript, want):
def Test(self):<EOL><INDENT>code = textwrap.dedent("""<STR_LIT>""")<EOL>status, output = _GrumpRun(code.format(subscript))<EOL>self.assertEqual(<NUM_LIT:0>, status, output)<EOL>self.assertEqual(want, output.strip())<EOL><DEDENT>return Test<EOL>
Define a test function that evaluates a slice expression.