def test_json():
    a = DummyTestFS(1)
    b = DummyTestFS(2, bar=1)
    outa = a.to_json()
    outb = b.to_json()
    assert json.loads(outb)
    assert (a != b)
    assert ('bar' in outb)
    assert (DummyTestFS.from_json(outa) is a)
    assert (DummyTestFS.from_json(outb) is b)
def test_json():
    a = DummyTestFS(1)
    b = DummyTestFS(2, bar=1)
    outa = a.to_json()
    outb = b.to_json()
    assert json.loads(outb)
    assert (a != b)
    assert ('bar' in outb)
    assert (DummyTestFS.from_json(outa) is a)
    assert (DummyTestFS.from_json(outb) is b)