예제 #1
0
def step_impl(context):
    fp = get_temp_file(context)
    with open(fp, "r") as fo:
        content = fo.read()
    assert content == ""
예제 #2
0
def step_impl(context, filename, text):
    fp = get_temp_file(context, filename)
    with open(fp, "r") as fo:
        content = fo.read()
    assert text in content