#NEWLINE# def test__get_document( self ) : #NEWLINE# #INDENT# post = self . latest_post #NEWLINE# result = BlogPost . get_document ( post ) #NEWLINE# self . assertEqual ( result , { #NEWLINE# #INDENT# 'title' : post . title , #NEWLINE# 'slug' : post . slug , #NEWLINE# 'blog' : { #NEWLINE# #INDENT# 'id' : post . blog . pk , #NEWLINE# 'description' : post . blog . description , #NEWLINE# 'name' : post . blog . name , #NEWLINE# #UNINDENT# } , #NEWLINE# 'created_at' : self . created_at , #NEWLINE# 'body' : post . body , #NEWLINE# #UNINDENT# } )