#NEWLINE# def test_json_serializable_constructor_with_invalid_obj( self ) : #NEWLINE# #INDENT# JSONSerializable . properties = [ 'baz' ] #NEWLINE# json_text = { #NEWLINE# #INDENT# 'foo' : 'bar' , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertRaises ( ValueError , JSONSerializable , self , None ) #NEWLINE# JSONSerializable . properties = [ ]