Module ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias Import alias Import alias FunctionDef arguments args defaults vararg kwarg body ImportFrom alias If BoolOpAnd CompareIn Str NameLoad CompareEq Call AttributeLoad NameLoad attr Str Str body Return ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Str Str decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad keyword Str keyword Str keyword Str keyword Str Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Str Str Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list
N/A unittest TestCase unittest SkipTest mock Mock MagicMock chatterbot.adapters.storage TwitterAdapter N/A os N/A json side_effect N/A N/A N/A args kwargs N/A twitter Status N/A N/A N/A term kwargs N/A N/A N/A kwargs get term Non-existant N/A N/A N/A N/A current_directory N/A N/A N/A os path dirname N/A N/A N/A os path realpath __file__ N/A data_file N/A N/A N/A os path join current_directory test_data get_search.json N/A tweet_data N/A open data_file N/A data N/A N/A json loads N/A N/A tweet_data read N/A N/A N/A tweet_data close N/A N/A N/A N/A Status NewFromJsonDict x N/A x N/A N/A data get statuses N/A TwitterAdapterTestCase N/A TestCase N/A setUp N/A N/A self N/A N/A N/A 
        Instantiate the adapter.
         N/A N/A self adapter N/A TwitterAdapter twitter_consumer_key twitter_consumer_key twitter_consumer_secret twitter_consumer_secret twitter_access_token_key twitter_access_token_key twitter_access_token_secret twitter_access_token_secret N/A N/A N/A self adapter api N/A Mock N/A N/A N/A N/A self adapter api GetSearch N/A MagicMock side_effect side_effect N/A test_count N/A N/A self N/A N/A N/A 
        The count should always be 1.
         N/A N/A N/A self assertEqual N/A N/A N/A self adapter count 1 N/A test_count N/A N/A self N/A N/A N/A 
        The update method should return the input statement.
         chatterbot.conversation Statement N/A statement N/A Statement Hello N/A result N/A N/A N/A self adapter update statement N/A N/A N/A self assertEqual statement result N/A test_choose_word N/A N/A self N/A N/A N/A words N/A G is my favorite letter N/A word N/A N/A N/A self adapter choose_word words N/A N/A N/A self assertEqual word N/A words N/A 3 N/A test_choose_no_word N/A N/A self N/A N/A N/A words N/A q N/A word N/A N/A N/A self adapter choose_word words N/A N/A N/A self assertEqual word None N/A test_drop N/A N/A self N/A N/A N/A 
        This drop method should do nothing.
         N/A N/A N/A N/A self adapter drop N/A test_filter N/A N/A self N/A N/A N/A statements N/A N/A N/A self adapter filter N/A N/A N/A self assertEqual N/A len statements 1 N/A test_statement_not_found N/A N/A self N/A N/A N/A 
        Test the case that a match is not found.
         N/A statement N/A N/A N/A self adapter find Non-existant N/A N/A N/A self assertEqual statement None N/A test_statement_found N/A N/A self N/A N/A N/A found_statement N/A N/A N/A self adapter find New statement N/A N/A N/A self assertNotEqual found_statement None N/A N/A N/A self assertTrue N/A len N/A found_statement text N/A test_filter N/A N/A self N/A N/A N/A statements N/A N/A N/A self adapter filter text__contains a few of my favorite things N/A N/A N/A self assertGreater N/A len statements 0 N/A test_get_random N/A N/A self N/A N/A N/A statement N/A N/A N/A self adapter get_random N/A N/A N/A self assertNotEqual statement None N/A N/A N/A self assertTrue N/A len N/A statement text N/A N/A