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