<s> import json <EOL> import os <EOL> import pickle <EOL> from nose . tools import eq_ <EOL> from revscoring . datasources import revision_oriented <EOL> from revscoring . dependencies import solve <EOL> from . . import wikidatawiki <EOL> def test_comment_features ( ) : <EOL> comment_ds = revision_oriented . revision . comment <EOL> cache = { comment_ds : "<STR_LIT>" } <EOL> eq_ ( solve ( wikidatawiki . is_merge_into , cache = cache ) , True ) <EOL> eq_ ( solve ( wikidatawiki . is_merge_from , cache = cache ) , False ) <EOL> eq_ ( solve ( wikidatawiki . is_item_creation , cache = cache ) , False ) <EOL> cache = { comment_ds : "<STR_LIT>" } <EOL> eq_ ( solve ( wikidatawiki . is_merge_from , cache = cache ) , True ) <EOL> eq_ ( solve ( wikidatawiki . is_merge_into , cache = cache ) , False ) <EOL> cache = { comment_ds : "<STR_LIT>" } <EOL> eq_ ( solve ( wikidatawiki . is_client_delete , cache = cache ) , True ) <EOL> eq_ ( solve ( wikidatawiki . is_client_move , cache = cache ) , False ) <EOL> cache = { comment_ds : "<STR_LIT>" } <EOL> eq_ ( solve ( wikidatawiki . is_client_move , cache = cache ) , True ) <EOL> eq_ ( solve ( wikidatawiki . is_client_delete , cache = cache ) , False ) <EOL> eq_ ( solve ( wikidatawiki . is_revert , cache = cache ) , False ) <EOL> cache = { comment_ds : "<STR_LIT>" } <EOL> eq_ ( solve ( wikidatawiki . is_revert , cache = cache ) , True ) <EOL> cache = { comment_ds : "<STR_LIT>" } <EOL> eq_ ( solve ( wikidatawiki . is_revert , cache = cache ) , True ) <EOL> cache = { comment_ds : "<STR_LIT>" } <EOL> eq_ ( solve ( wikidatawiki . is_revert , cache = cache ) , True ) <EOL> cache = { comment_ds : "<STR_LIT>" } <EOL> eq_ ( solve ( wikidatawiki . is_restore , cache = cache ) , True ) <EOL> eq_ ( solve ( wikidatawiki . is_item_creation , cache = cache ) , False ) <EOL> eq_ ( solve ( wikidatawiki . is_revert , cache = cache ) , False ) <EOL> cache = { comment_ds : "<STR_LIT>" } <EOL> eq_ ( solve ( wikidatawiki . is_item_creation , cache = cache ) , True ) <EOL> def test_property_features ( ) : <EOL> pass </s>
