#NEWLINE# def test_cant_record_new_exchanges_with_None_status( self ) : #NEWLINE# #INDENT# r = self . record_an_exchange ( { #NEWLINE# #INDENT# 'amount' : '10' , #NEWLINE# 'fee' : '0' , #NEWLINE# 'status' : None , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( r . code == 400 ) #NEWLINE# assert ( self . db . one ( 'SELECT count(*) FROM exchanges' ) == 0 )