Ejemplo n.º 1
0
def test_save_load_blocks(string):
    a, b = save_blocks(string)
    assert load_blocks(a, b) == string
Ejemplo n.º 2
0
def test_save_blocks():
    a, b = save_blocks('<code>nobody</code> := <code>chickens</code>')
    assert a == '<\b> := <\b>'
    assert b.pop() == '<code>chickens</code>'
    assert b.pop() == '<code>nobody</code>'