#NEWLINE# def test_physicaldescription( self ) : #NEWLINE# #INDENT# record = Record ( ) #NEWLINE# pd1 = '=300  \\$a1 photographic print :$bgelatin silver ;$c10 x 56 in.' #NEWLINE# pd2 = '=300  \\$aFOO$bBAR$cBAZ' #NEWLINE# pdlist = [ self , pd2 ] #NEWLINE# self . assertEquals ( record . physicaldescription ( ) , [ ] ) #NEWLINE# record . add_field ( Field ( '300' , [ '\\' , '' ] , subfields = [ 'a' , '1 photographic print :' , 'b' , 'gelatin silver ;' , 'c' , '10 x 56 in.' ] ) ) #NEWLINE# record . add_field ( Field ( '300' , [ '\\' , '' ] , subfields = [ 'a' , 'FOO' , 'b' , 'BAR' , 'c' , 'BAZ' ] ) ) #NEWLINE# self . assertEquals ( len ( record . physicaldescription ( ) ) , 2 ) #NEWLINE# self . assertEquals ( record . physicaldescription ( ) [ 0 ] . __str__ ( ) , pd1 ) #NEWLINE# self . assertEquals ( record . physicaldescription ( ) [ 1 ] . __str__ ( ) , pd2 ) #NEWLINE# rpdlist = [ rpd . __str__ ( ) for rpd in record . physicaldescription ( ) ] #NEWLINE# self . assertEquals ( pdlist , rpdlist )