module documentation
Tests for twisted.python.fakepwd
.
Class |
|
PwdModuleTests runs the tests defined by UserDatabaseTestsMixin against the built-in pwd module. This serves to verify that UserDatabase is really a fake of that API. |
Class |
|
Tests for ShadowDatabase . |
Class |
|
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 ... |
Class |
|
SPwdModuleTests runs the tests defined by ShadowDatabaseTestsMixin against the built-in spwd module. This serves to verify that ShadowDatabase is really a fake of that API. |
Class |
|
Tests for UserDatabase . |
Class |
|
UserDatabaseTestsMixin defines tests which apply to any user database implementation. Subclasses should mix it in, implement setUp to create self.database bound to a user database instance, and implement ... |
Function | find |
By convention, UIDs less than 1000 are reserved for the system. A system which allocated every single one of those UIDs would likely have practical problems with allocating new ones, so let's assume that we'll be able to find one... |
Constant | INVALID |
Undocumented |
Constant | SYSTEM |
Undocumented |
By convention, UIDs less than 1000 are reserved for the system. A system which allocated every single one of those UIDs would likely have practical problems with allocating new ones, so let's assume that we'll be able to find one. (If we don't, this will wrap around to negative values and eventually find something.)
Returns | |
a user ID which does not exist on the local system. Or, on systems without a pwd module, return SYSTEM_UID_MAX. |