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)
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"