twisted.python.test.test_fakepwd.ShadowDatabaseTestsMixin(object) class documentationtwisted.python.test.test_fakepwd
(View In Hierarchy)
Known subclasses: twisted.python.test.test_fakepwd.ShadowDatabaseTests, twisted.python.test.test_fakepwd.SPwdModuleTests
ShadowDatabaseTestsMixin
defines tests which apply to any shadow user database implementation.
Subclasses should mix it in, implement setUp to create
self.database bound to a shadow user database instance, and
implement getExistingUserInfo to return information about a
user (such information should be unique per test method).
| Method | test_getspnam | getspnam accepts a username and returns the user record
associated with it. |
| Method | test_noSuchName | getspnam raises KeyError
when passed a username which does not exist in the user database. |
| Method | test_recordLength | The shadow user record returned by getspnam and getspall has a length. |
| Method | test_recordIndexable | No summary |
getspnam accepts a username and returns the user record
associated with it.
getspnam raises KeyError
when passed a username which does not exist in the user database.