Did I find the right examples for you? yes no

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

        def TestUnitOutputs(unitname, gold_file, test_file):
  CompareOutputFiles(gold_file, test_file)
  print '%s successful' % unitname
        


src/n/l/nltk_contrib-HEAD/nltk_contrib/scripttranscriber/thai_unittest.py   nltk_contrib(Download)
    doclist.XmlDump(TMP_XML_FILE_, utf8 = True)
    ComputePhoneMatches(doclist, TMP_MATCH_FILE_)
    unittest.TestUnitOutputs(sys.argv[0] + ': token parsing',\
                             XML_FILE_, TMP_XML_FILE_)
    unittest.TestUnitOutputs(sys.argv[0] + ': string matching',\

src/n/l/nltk_contrib-HEAD/nltk_contrib/scripttranscriber/xmlhandler_unittest.py   nltk_contrib(Download)
    doclist = handler.Decode(GOLDEN_FILE_)
    doclist.XmlDump(TEST_FILE_, utf8 = True)
    unittest.TestUnitOutputs(sys.argv[0], \
                             GOLDEN_FILE_, TEST_FILE_)
 

src/n/l/nltk_contrib-HEAD/nltk_contrib/scripttranscriber/token_comp_unittest.py   nltk_contrib(Download)
    TestCorrelations(doclist, TEST_FILE_)
    TestSnowActivations(doclist, TEST_FILE_)
    unittest.TestUnitOutputs(sys.argv[0] + ' (main test & perceptron test)', \
                             GOLDEN_FILE_, TEST_FILE_)
    TestAuxiliaryComparators(sys.argv[0])

src/n/l/nltk_contrib-HEAD/nltk_contrib/scripttranscriber/morph_unittest.py   nltk_contrib(Download)
  else:
    doclist.XmlDump(TEST_FILE_)
    unittest.TestUnitOutputs(sys.argv[0], GOLDEN_FILE_, TEST_FILE_)
 
if __name__ == '__main__':

src/n/l/nltk_contrib-HEAD/nltk_contrib/scripttranscriber/filter_unittest.py   nltk_contrib(Download)
  else:
    doclist.XmlDump(TEST_FILE_, utf8 = True)
    unittest.TestUnitOutputs(sys.argv[0],\
                             GOLDEN_FILE_, TEST_FILE_)