#NEWLINE# def test_deserialize_with_multi_table_inheritance( self ) : #NEWLINE# #INDENT# fat_duck = Restaurant . from_json ( '{"pk": 42, "name": "The Fat Duck", "serves_hot_dogs": false, "reviews": [{"pk": null, "author": "Michael Winner", "body": "Rubbish."}]}' ) #NEWLINE# self . assertEqual ( fat_duck . id , 42 ) #NEWLINE# self . assertEqual ( fat_duck . name , 'The Fat Duck' ) #NEWLINE# self . assertEqual ( self . serves_hot_dogs , False ) #NEWLINE# self . assertEqual ( fat_duck . reviews . all ( ) [ 0 ] . author , 'Michael Winner' )