#NEWLINE# def test_stories_dict_structure_newest( self ) : #NEWLINE# #INDENT# '\n        Checks data type of each field of each story from newest page\n        ' #NEWLINE# for story in self . newest_stories : #NEWLINE# #INDENT# assert ( type ( story . rank ) == int ) #NEWLINE# assert ( type ( story . story_id ) == int ) #NEWLINE# assert ( type ( story . title ) in self . text_type ) #NEWLINE# assert ( type ( story . link ) in self . text_type ) #NEWLINE# assert ( type ( story . domain ) in self . text_type ) #NEWLINE# assert ( type ( story . points ) == int ) #NEWLINE# assert ( type ( story . submitter ) in self . text_type ) #NEWLINE# assert ( type ( story . published_time ) in self . text_type ) #NEWLINE# assert ( type ( story . submitter_profile ) in story . text_type ) #NEWLINE# assert ( type ( story . num_comments ) == int ) #NEWLINE# assert ( type ( story . comments_link ) in self . text_type ) #NEWLINE# assert ( type ( story . is_self ) == bool )