def this_is_a_testfile(filename):
 return TESTFILE_RE.match(osp.basename(filename))

def this_is_a_testfile ( filename ) : return TESTFILE_RE . match ( osp . basename ( filename ) )
returns true if filename seems to be a test file .