'Test lambda to compute the required ACL'

def testRequiredACL(self):

    p = current.auth.permission
    assertEqual = self.assertEqual
    assertEqual(p.required_acl(['read']), p.READ)
    assertEqual(p.required_acl(['create']), p.CREATE)
    assertEqual(p.required_acl(['update']), p.UPDATE)
    assertEqual(p.required_acl(['delete']), p.DELETE)
    assertEqual(p.required_acl(['create', 'update']), (p.CREATE | p.UPDATE))
    assertEqual(p.required_acl([]), p.NONE)
    assertEqual(p.required_acl(['invalid']), p.NONE)
