def verifyResults(lines, testRegex):
 lines = removePrompts(lines)
 chopped = ''.join([line[:(-1)] for line in lines])
 Assert(re.match(testRegex, chopped), ((('Expected Regular Expression=' + testRegex) + '\nActual Lines=') + chopped))

def verifyResults ( lines , testRegex ) : lines = removePrompts ( lines ) chopped = '' . join ( [ line [ : ( - 1 ) ] for line in lines ] ) Assert ( re . match ( testRegex , chopped ) , ( ( ( 'Expected Regular Expression=' + testRegex ) + '\nActual Lines=' ) + chopped ) )
verifies that a set of lines match a regular expression .