#NEWLINE# def test_get_recent( self ) : #NEWLINE# #INDENT# user2 = UserProfile . objects . get ( email = 'admin@mozilla.com' ) #NEWLINE# self . _give_points ( ) #NEWLINE# time . sleep ( 1 ) #NEWLINE# self . _give_points ( status = amo . STATUS_LITE ) #NEWLINE# self . _give_points ( user = user2 ) #NEWLINE# scores = ReviewerScore . get_recent ( self . user ) #NEWLINE# assert ( len ( scores ) == 2 ) #NEWLINE# assert ( scores [ 0 ] . score == amo . REVIEWED_SCORES [ amo . REVIEWED_ADDON_PRELIM ] ) #NEWLINE# assert ( scores [ 1 ] . score == amo . REVIEWED_SCORES [ amo . REVIEWED_ADDON_FULL ] )