def test_runlevels(self):
     assert service.convert_systemd_target_to_runlevel(
         "poweroff.target") == '0'
     assert service.convert_systemd_target_to_runlevel(
         "rescue.target") == 's'
     assert service.convert_systemd_target_to_runlevel(
         "multi-user.target") == '3'
     assert service.convert_systemd_target_to_runlevel(
         "graphical.target") == '5'
     assert service.convert_systemd_target_to_runlevel(
         "reboot.target") == '6'
Beispiel #2
0
 def test_runlevels(self):
     assert service.convert_systemd_target_to_runlevel(
         "poweroff.target") == '0'
     assert service.convert_systemd_target_to_runlevel(
         "rescue.target") == 's'
     assert service.convert_systemd_target_to_runlevel(
         "multi-user.target") == '3'
     assert service.convert_systemd_target_to_runlevel(
         "graphical.target") == '5'
     assert service.convert_systemd_target_to_runlevel(
         "reboot.target") == '6'