#NEWLINE# def test_withdrawals_work( self ) : #NEWLINE# #INDENT# self . make_participant ( 'alice' , claimed_time = utcnow ( ) , is_admin = True ) #NEWLINE# self . bob = self . make_participant ( 'bob' , claimed_time = utcnow ( ) , balance = 20 ) #NEWLINE# self . record_an_exchange ( { #NEWLINE# #INDENT# 'amount' : '-7' , #NEWLINE# 'fee' : '0' , #NEWLINE# #UNINDENT# } , make_participants = False ) #NEWLINE# expected = Decimal ( '13.00' ) #NEWLINE# SQL = "SELECT balance FROM participants WHERE username='bob'" #NEWLINE# actual = self . db . one ( SQL ) #NEWLINE# assert ( actual == expected )