#NEWLINE# @ pytest . mark . xfail ( reason = "haven't migrated transfer_takes yet" ) #NEWLINE# def test_first_payday_comes_through( self ) : #NEWLINE# #INDENT# self . run_payday ( ) #NEWLINE# self . run_payday ( ) #NEWLINE# expected = [ { #NEWLINE# #INDENT# 'date' : today ( ) , #NEWLINE# 'npatrons' : 2 , #NEWLINE# 'receipts' : 3.0 , #NEWLINE# #UNINDENT# } ] #NEWLINE# actual = json . loads ( self . client . GET ( '/~carl/charts.json' ) . body ) #NEWLINE# assert ( actual == expected )