#NEWLINE# def test_deleted( self ) : #NEWLINE# #INDENT# min_date = '2010-01-01' #NEWLINE# self . list . stub_request ( ( 'lists/%s/deleted.json?date=%s&orderfield=email&page=1&pagesize=1000&orderdirection=asc' % ( self . list . list_id , urllib . quote ( min_date ) ) ) , 'deleted_subscribers.json' ) #NEWLINE# res = self . list . deleted ( min_date ) #NEWLINE# self . assertEquals ( res . ResultsOrderedBy , 'email' ) #NEWLINE# self . assertEquals ( res . OrderDirection , 'asc' ) #NEWLINE# self . assertEquals ( res . PageNumber , 1 ) #NEWLINE# self . assertEquals ( res . PageSize , 1000 ) #NEWLINE# self . assertEquals ( res . RecordsOnThisPage , 5 ) #NEWLINE# self . assertEquals ( res . TotalNumberOfRecords , 5 ) #NEWLINE# self . assertEquals ( res . NumberOfPages , 1 ) #NEWLINE# self . assertEquals ( len ( res . Results ) , 5 ) #NEWLINE# self . assertEquals ( res . Results [ 0 ] . EmailAddress , 'subscriber@example.com' ) #NEWLINE# self . assertEquals ( res . Results [ 0 ] . Name , 'Deleted One' ) #NEWLINE# self . assertEquals ( res . Results [ 0 ] . Date , '2010-10-25 13:11:00' ) #NEWLINE# self . assertEquals ( res . Results [ 0 ] . State , 'Deleted' ) #NEWLINE# self . assertEquals ( len ( res . Results [ 0 ] . CustomFields ) , 0 ) #NEWLINE# self . assertEquals ( res . Results [ 0 ] . ReadsEmailWith , 'Gmail' )