Trees Indices Help
Trac
Package trac :: Module test :: Class MockPerm

Class MockPerm

source code

object --+
 |
 MockPerm

Fake permission class. Necessary as Mock can not be used with operator overloading.
Instance Methods
has_permission(self, action, realm_or_resource=None, id=False, version=False) source code
__contains__(self, action, realm_or_resource=None, id=False, version=False) source code
__call__(self, realm_or_resource, id=False, version=False) source code
require(self, action, realm_or_resource=None, id=False, version=False) source code
assert_permission(self, action, realm_or_resource=None, id=False, version=False) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables
username = ''
hash(x)
Properties

Inherited from object: __class__

Trees Indices Help
Trac

AltStyle によって変換されたページ (->オリジナル) /