Esempio n. 1
0
def test_remote_grub_initrd(value, expected_exception):
    # Arrange
    test_api = CobblerAPI()
    distro = Distro(test_api)

    # Act
    with expected_exception:
        distro.remote_boot_initrd = value

        # Assert
        assert distro.remote_grub_initrd == value
Esempio n. 2
0
def test_remote_boot_initrd(value, expected_exception):
    # TODO: Create fake initrd to have a real test
    # Arrange
    test_api = CobblerAPI()
    distro = Distro(test_api)

    # Act
    with expected_exception:
        distro.remote_boot_initrd = value

        # Assert
        assert distro.remote_boot_initrd == value