Module Import alias ImportFrom alias Import alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias alias Import alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str keyword Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Str keyword Call NameLoad Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad NameLoad attr Str keyword Call NameLoad Str Assign NameStore CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr ListLoad NameLoad orelse Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr ListComp NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr ListComp NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign AttributeStore NameLoad attr ListComp NameLoad comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body Assert CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad Assert CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad Assert CompareIn Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareIn Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareIn Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad Assert CompareIn Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareIn Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareIn Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad Assert CompareIn Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body Assert CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad Assert CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad Assert CompareIn Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareIn Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareIn Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad Assert CompareIn Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareIn Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareIn Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad Assert CompareIn Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body Assert CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad Assert CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad Assert CompareIn Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareIn Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareIn Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad Assert CompareIn Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareIn Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareIn Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad Assert CompareIn Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq Call NameLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Num decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A unittest os path N/A sys hn HN Story hn utils constants test_utils get_content PRESETS_DIR N/A httpretty TestStoriesDict N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A N/A N/A httpretty HTTPretty enable N/A N/A N/A httpretty register_uri N/A httpretty GET https://news.ycombinator.com/ body N/A get_content index.html N/A N/A N/A httpretty register_uri N/A httpretty GET N/A %s/%s N/A N/A constants BASE_URL best body N/A get_content best.html N/A N/A N/A httpretty register_uri N/A httpretty GET N/A %s/%s N/A N/A constants BASE_URL newest body N/A get_content newest.html N/A PY2 N/A N/A N/A sys version_info N/A 0 2 N/A N/A PY2 N/A N/A N/A self text_type N/A str N/A N/A N/A self text_type N/A unicode str N/A N/A self hn N/A HN N/A N/A self top_stories N/A story N/A story N/A N/A N/A self hn get_stories N/A N/A self newest_stories N/A story N/A story N/A N/A N/A self hn get_stories story_type newest N/A N/A self best_stories N/A story N/A story N/A N/A N/A self hn get_stories story_type best N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A httpretty HTTPretty disable N/A test_stories_dict_structure_top N/A N/A self N/A N/A N/A 
        Checks data type of each field of each story from front page.
         N/A story N/A self top_stories N/A N/A N/A N/A type N/A story rank int N/A N/A N/A type N/A story story_id int N/A N/A N/A type N/A story title N/A self text_type N/A N/A N/A type N/A story link N/A self text_type N/A N/A N/A type N/A story domain N/A self text_type N/A N/A N/A type N/A story points int N/A N/A N/A type N/A story submitter N/A self text_type N/A N/A N/A type N/A story published_time N/A self text_type N/A N/A N/A type N/A story submitter_profile N/A self text_type N/A N/A N/A type N/A story num_comments int N/A N/A N/A type N/A story comments_link N/A self text_type N/A N/A N/A type N/A story is_self bool N/A test_stories_dict_structure_newest N/A N/A self N/A N/A N/A 
        Checks data type of each field of each story from newest page
         N/A story N/A self newest_stories N/A N/A N/A N/A type N/A story rank int N/A N/A N/A type N/A story story_id int N/A N/A N/A type N/A story title N/A self text_type N/A N/A N/A type N/A story link N/A self text_type N/A N/A N/A type N/A story domain N/A self text_type N/A N/A N/A type N/A story points int N/A N/A N/A type N/A story submitter N/A self text_type N/A N/A N/A type N/A story published_time N/A self text_type N/A N/A N/A type N/A story submitter_profile N/A self text_type N/A N/A N/A type N/A story num_comments int N/A N/A N/A type N/A story comments_link N/A self text_type N/A N/A N/A type N/A story is_self bool N/A test_stories_dict_structure_best N/A N/A self N/A N/A N/A 
        Checks data type of each field of each story from best page
         N/A story N/A self best_stories N/A N/A N/A N/A type N/A story rank int N/A N/A N/A type N/A story story_id int N/A N/A N/A type N/A story title N/A self text_type N/A N/A N/A type N/A story link N/A self text_type N/A N/A N/A type N/A story domain N/A self text_type N/A N/A N/A type N/A story points int N/A N/A N/A type N/A story submitter N/A self text_type N/A N/A N/A type N/A story published_time N/A self text_type N/A N/A N/A type N/A story submitter_profile N/A self text_type N/A N/A N/A type N/A story num_comments int N/A N/A N/A type N/A story comments_link N/A self text_type N/A N/A N/A type N/A story is_self bool N/A test_stories_dict_length_top N/A N/A self N/A N/A N/A 
        Checks if the dict returned by scraping the front page of HN is 30.
         N/A N/A N/A self assertEqual N/A len N/A self top_stories 30 N/A test_stories_dict_length_best N/A N/A self N/A N/A N/A 
        Checks if the dict returned by scraping the best page of HN is 30.
         N/A N/A N/A self assertEqual N/A len N/A self best_stories 30 N/A test_stories_dict_length_top_newest N/A N/A self N/A N/A N/A 
        Checks if the dict returned by scraping the newest page of HN is 30.
         N/A N/A N/A self assertEqual N/A len N/A self newest_stories 30 N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main