Test whether the common privilege functions work as intended
dhcpkit.tests.common.privileges.test_privileges.
PrivilegeTestCase
Bases: unittest.case.TestCase
unittest.case.TestCase
get_nobody
get_somebody
setUp
Hook method for setting up the test fixture before exercising it.
tearDown
Hook method for deconstructing the test fixture after testing it.
test_drop_privileges_not_necessary
test_drop_privileges_with_restore
test_restore_privileges_as_effective_other
test_restore_privileges_as_non_root
test_restore_privileges_as_root