<s> __author__ = "<STR_LIT>" <EOL> import unittest <EOL> from gdata import test_data <EOL> import gdata . books <EOL> import atom <EOL> class BookEntryTest ( unittest . TestCase ) : <EOL> def testBookEntryFromString ( self ) : <EOL> entry = gdata . books . Book . FromString ( test_data . BOOK_ENTRY ) <EOL> self . assert_ ( isinstance ( entry , gdata . books . Book ) ) <EOL> self . assertEquals ( [ x . text for x in entry . creator ] , [ '<STR_LIT>' ] ) <EOL> self . assertEquals ( entry . date . text , '<STR_LIT>' ) <EOL> self . assertEquals ( entry . format . text , '<STR_LIT>' ) <EOL> self . assertEquals ( [ x . text for x in entry . identifier ] , <EOL> [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> self . assertEquals ( [ x . text for x in entry . publisher ] , <EOL> [ '<STR_LIT>' ] ) <EOL> self . assertEquals ( entry . subject , None ) <EOL> self . assertEquals ( [ x . text for x in entry . dc_title ] , <EOL> [ '<STR_LIT>' ] ) <EOL> self . assertEquals ( entry . viewability . value , <EOL> '<STR_LIT>' ) <EOL> self . assertEquals ( entry . embeddability . value , <EOL> '<STR_LIT>' ) <EOL> self . assertEquals ( entry . review , None ) <EOL> self . assertEquals ( [ getattr ( entry . rating , x ) for x in <EOL> ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT:value>" ) ] , [ '<STR_LIT:1>' , '<STR_LIT:5>' , '<STR_LIT>' , None ] ) <EOL> self . assertEquals ( entry . GetThumbnailLink ( ) . href , <EOL> '<STR_LIT>' ) <EOL> self . assertEquals ( entry . GetInfoLink ( ) . href , <EOL> '<STR_LIT>' ) <EOL> self . assertEquals ( entry . GetPreviewLink ( ) , None ) <EOL> self . assertEquals ( entry . GetAnnotationLink ( ) . href , <EOL> '<STR_LIT>' ) <EOL> self . assertEquals ( entry . get_google_id ( ) , '<STR_LIT>' ) <EOL> def testBookFeedFromString ( self ) : <EOL> feed = gdata . books . BookFeed . FromString ( test_data . BOOK_FEED ) <EOL> self . assert_ ( isinstance ( feed , gdata . books . BookFeed ) ) <EOL> self . assertEquals ( len ( feed . entry ) , <NUM_LIT:1> ) <EOL> self . assert_ ( isinstance ( feed . entry [ <NUM_LIT:0> ] , gdata . books . Book ) ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> unittest . main ( ) </s>
