TestUserName Class Reference

List of all members.


Detailed Description

Storage class for a test user name and its attributes.

Author:
Enrico Hartung <enrico@iptel.org>
License:
GPL

Definition at line 26 of file TestUser.py.


Public Member Functions

def __init__
 Constructor.
def setName
 Set user name.
def getName
 Get user name.
def setAvp
 Set AVP for user name.
def getAvp
 Get value of an AVP of user name.
def getAvps
 Get all AVPs of user name.

Private Attributes

 __name
 __avps

Static Private Attributes

string __name = ""
dictionary __avps = {}

Member Function Documentation

def __init__ (   self  ) 

Constructor.

Definition at line 38 of file TestUser.py.

def setName (   self,
  name 
)

Set user name.

Parameters:
name user name (string)

Definition at line 49 of file TestUser.py.

def getName (   self  ) 

Get user name.

Returns:
user name (string)

Definition at line 59 of file TestUser.py.

def setAvp (   self,
  avpName,
  avpValue 
)

Set AVP for user name.

An attribute value pair (AVP) is a generic storage attribute for additional attributes.

Parameters:
avpName avp name (string)
avpValue avp value (string)

Definition at line 72 of file TestUser.py.

def getAvp (   self,
  avpName 
)

Get value of an AVP of user name.

An attribute value pair (AVP) is a generic storage attribute for additional attributes.

Parameters:
avpName avp name (string)
Returns:
avp value (string)

Definition at line 85 of file TestUser.py.

def getAvps (   self  ) 

Get all AVPs of user name.

An attribute value pair (AVP) is a generic storage attribute for additional attributes.

Returns:
AVPs (dict)

Definition at line 97 of file TestUser.py.


Member Data Documentation

string __name = "" [static, private]

Definition at line 28 of file TestUser.py.

dictionary __avps = {} [static, private]

Definition at line 31 of file TestUser.py.

__name [private]

Definition at line 39 of file TestUser.py.

__avps [private]

Definition at line 40 of file TestUser.py.


The documentation for this class was generated from the following file:

Generated on Mon Aug 11 17:28:33 2008 for TestEnv by  doxygen 1.5.5