#NEWLINE# def test_project_events_get_invalid_token( self ) : #NEWLINE# #INDENT# res = { #NEWLINE# #INDENT# 'message' : 'Sync token invalid or too old. If you are attemping to keep resources in sync, you must re-fetch the full dataset for this query now.' , #NEWLINE# 'sync' : 'edfc0896b370b7a479886d316131bf5c:0' , #NEWLINE# #UNINDENT# } #NEWLINE# responses . add ( GET , 'http://app/events?resource=3214312&sync=de4774f6915eae04714ca93bb2f5ee81%3A3' , status = 412 , body = json . dumps ( res ) , match_querystring = True ) #NEWLINE# self . assertRaises ( asana . error . InvalidTokenError , res . client . events . get , { #NEWLINE# #INDENT# 'resource' : 3214312 , #NEWLINE# 'sync' : 'de4774f6915eae04714ca93bb2f5ee81:3' , #NEWLINE# #UNINDENT# } )