'Verify that the perms_info view is behaving as expected'

def test_perms_info(self):

    layer = Layer.objects.all()[0]
    layer.set_default_permissions()
    self.assertTrue(self.anonymous_user.has_perm('view_resourcebase', layer.get_self_resource()))
    self.assertTrue(layer.owner.has_perm('change_resourcebase', layer.get_self_resource()))
