module documentation
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 ShadowDatabaseTests Tests for ShadowDatabase.
Class ShadowDatabaseTestsMixin 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 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 UserDatabaseTests Tests for UserDatabase.
Class UserDatabaseTestsMixin 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 findInvalidUID 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_UID Undocumented
Constant SYSTEM_UID_MAX Undocumented
def findInvalidUID(): (source)

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.
INVALID_UID = (source)

Undocumented

Value
findInvalidUID()
SYSTEM_UID_MAX: int = (source)

Undocumented

Value
999