Tests for twisted.python.fakepwd
.
Function | findInvalidUID | No summary |
Class | UserDatabaseTestsMixin | No summary |
Class | UserDatabaseTests | Tests for UserDatabase . |
Class | PwdModuleTests | 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 | ShadowDatabaseTestsMixin | No summary |
Class | ShadowDatabaseTests | Tests for ShadowDatabase . |
Class | SPwdModuleTests | 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. |
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 . |