def test_OsDetector(): from rospkg.os_detect import OsDetector d = OsDetector() try: d.is_os() assert False except NotImplementedError: pass try: d.get_version() assert False except NotImplementedError: pass try: d.get_codename() assert False except NotImplementedError: pass