nltk.test.unit.test_json2csv_corpus module

Regression tests for json2csv() and json2csv_entities() in Twitter package.

nltk.test.unit.test_json2csv_corpus.files_are_identical(pathA, pathB)[source]

Compare two files, ignoring carriage returns, leading whitespace, and trailing whitespace

nltk.test.unit.test_json2csv_corpus.infile()[source]
nltk.test.unit.test_json2csv_corpus.test_textoutput(tmp_path, infile)[source]
nltk.test.unit.test_json2csv_corpus.test_tweet_metadata(tmp_path, infile)[source]
nltk.test.unit.test_json2csv_corpus.test_user_metadata(tmp_path, infile)[source]
nltk.test.unit.test_json2csv_corpus.test_tweet_hashtag(tmp_path, infile)[source]
nltk.test.unit.test_json2csv_corpus.test_tweet_usermention(tmp_path, infile)[source]
nltk.test.unit.test_json2csv_corpus.test_tweet_media(tmp_path, infile)[source]
nltk.test.unit.test_json2csv_corpus.test_tweet_url(tmp_path, infile)[source]
nltk.test.unit.test_json2csv_corpus.test_userurl(tmp_path, infile)[source]
nltk.test.unit.test_json2csv_corpus.test_tweet_place(tmp_path, infile)[source]
nltk.test.unit.test_json2csv_corpus.test_tweet_place_boundingbox(tmp_path, infile)[source]
nltk.test.unit.test_json2csv_corpus.test_retweet_original_tweet(tmp_path, infile)[source]
nltk.test.unit.test_json2csv_corpus.test_file_is_wrong(tmp_path, infile)[source]

Sanity check that file comparison is not giving false positives.