def is_running_as_root() -> bool:
- """Returns True if running as root."""
+ """Returns True if running as root.
+
+ >>> is_running_as_root()
+ False
+ """
return os.geteuid() == 0
+
+
+if __name__ == '__main__':
+ import doctest
+
+ doctest.testmod()