def test_save_load_blocks(string): a, b = save_blocks(string) assert load_blocks(a, b) == string
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>'