'Check the properties of the anonymous user'

def test_anonymous_user(self):

    a = AnonymousUser()
    self.assertIsNone(a.pk)
    self.assertEqual(a.username, '')
    self.assertEqual(a.get_username(), '')
    self.assertTrue(a.is_anonymous)
    self.assertFalse(a.is_authenticated)
    self.assertFalse(a.is_staff)
    self.assertFalse(a.is_active)
    self.assertFalse(a.is_superuser)
    self.assertEqual(a.groups.all().count(), 0)
    self.assertEqual(a.user_permissions.all().count(), 0)
