#NEWLINE# def test_adds_site_to_tags_fallback( self ) : #NEWLINE# #INDENT# with Settings ( SITE_ID = 12345 ) : #NEWLINE# #INDENT# self . assertRaises ( TemplateSyntaxError , self . client . get , reverse ( 'sentry-template-exc' ) ) #NEWLINE# assert ( len ( self . raven . events ) == 1 ) #NEWLINE# event = self . raven . events . pop ( 0 ) #NEWLINE# tags = event [ 'tags' ] #NEWLINE# assert ( 'site' in event [ 'tags' ] ) #NEWLINE# assert ( tags [ 'site' ] == 12345 )