def verify_running_as_root():
 if (os.getuid() != 0):
  raise error.TestNAError(('This test requires root privileges (currently running with user %s)' % getpass.getuser()))

def verify_running_as_root ( ) : if ( os . getuid ( ) != 0 ) : raise error . TestNAError ( ( 'This test requires root privileges (currently running with user %s)' % getpass . getuser ( ) ) )
verifies whether were running under uid 0 .