#NEWLINE# def test_simple( self ) : #NEWLINE# #INDENT# task_1 = self . create_task ( task_name = 'example' , date_created = datetime ( 2013 , 9 , 19 , 22 , 15 , 24 ) ) #NEWLINE# task_2 = self . create_task ( task_name = 'example' , date_created = datetime ( 2013 , 9 , 20 , 22 , 15 , 24 ) ) #NEWLINE# path = '/api/0/tasks/' #NEWLINE# resp = self . client . get ( data ) #NEWLINE# assert ( resp . status_code == 200 ) #NEWLINE# data = self . unserialize ( resp ) #NEWLINE# assert ( len ( data ) == 2 ) #NEWLINE# assert ( data [ 0 ] [ 'id' ] == task_2 . id . hex ) #NEWLINE# assert ( data [ 1 ] [ 'id' ] == task_1 . id . hex )