#NEWLINE# def test_anonymous_user( self ) : #NEWLINE# #INDENT# 'Check the properties of the anonymous user' #NEWLINE# a = AnonymousUser ( ) #NEWLINE# self . assertFalse ( a . is_authenticated ( ) ) #NEWLINE# self . assertFalse ( a . is_staff ) #NEWLINE# self . assertFalse ( a . is_active ) #NEWLINE# self . assertFalse ( a . is_superuser ) #NEWLINE# self . assertEqual ( a . groups . all ( ) . count ( ) , 0 ) #NEWLINE# self . assertEqual ( a . user_permissions . all ( ) . count ( ) , 0 )