Ejemplo n.º 1
0
def test_getVersion_unhappy():
    plugin = PluginObject()
    with pytest.raises(Exception):
        plugin.getVersion()  # We didn't set a version yet.
Ejemplo n.º 2
0
def test_getVersion_happy():
    plugin = PluginObject()
    plugin.setVersion("12.0.0")
    assert plugin.getVersion() == "12.0.0"
Ejemplo n.º 3
0
def test_getVersion_unhappy():
    plugin = PluginObject()
    with pytest.raises(ValueError):
        plugin.getVersion()  # We didn't set a version yet.