Ejemplo n.º 1
0
def test_addosversion_empty():
    # Arrange
    os_signatures = Signatures()
    os_signatures.addosbreed("suse")

    # Act
    os_signatures.addosversion(0, "sles", None)

    # Assert
    assert os_signatures.osbreeds[0].osversions["sles"] == Osversion()
Ejemplo n.º 2
0
def test_removeosversion():
    # Arrange
    os_signatures = Signatures()
    os_signatures.addosbreed("suse")
    os_signatures.addosversion(0, "sles", Osversion())

    # Act
    os_signatures.removeosversion(0, "sles")

    # Assert
    assert os_signatures.osbreeds[0].osversions == {}