def test_load(self): assert ST.load(StringIO(native("42"))) == 42
def test_load(self): assert BaseTransform().load(StringIO(native("bar"))) == "bar"
def test_dump(self): fh = StringIO() assert BaseTransform().dump(fh, "baz") == 3 assert fh.getvalue() == "baz"
def test_dump(self): fh = StringIO() assert ST.dump(fh, 2.15) == 4 assert fh.getvalue() == "2.15"