Ejemplo n.º 1
0
def test_argument_checking(service, servicename, keyword_name):
    """Check argument type checking."""
    from Cauldron.ktl.procedural import read, write
    with pytest.raises(TypeError):
        read(1, "hello")
    with pytest.raises(TypeError):
        read(servicename, 1)
Ejemplo n.º 2
0
def test_argument_checking(service, servicename, keyword_name):
    """Check argument type checking."""
    from Cauldron.ktl.procedural import read, write
    with pytest.raises(TypeError):
        read(1, "hello")
    with pytest.raises(TypeError):
        read(servicename, 1)
Ejemplo n.º 3
0
def test_read_write(service, servicename, keyword_name):
    """Test a write method."""

    from Cauldron.ktl.procedural import read, write
    write(servicename, keyword_name, "10")
    assert read(servicename, keyword_name) == "10"
Ejemplo n.º 4
0
def test_read_write(service, servicename, keyword_name):
    """Test a write method."""
    
    from Cauldron.ktl.procedural import read, write
    write(servicename, keyword_name, "10")
    assert read(servicename, keyword_name) == "10"