Commits

Jason R. Coombs committed 1618fa0

Added some docs to the tests

Comments (0)

Files changed (1)

jaraco/json/test_encoding.py

+"""
+Test encoding to json and decoding from json.
+"""
 
 from jaraco.json.main import encode, decode
 
 		self.value = value
 
 def test_encode_object():
+	"""
+	Serialize an object with nested objects into json.
+	"""
 	coll = MyCollection()
 	coll.append(MyItem(63))
 	coll.append({'a': 'dict'})
 	return serialized
 
 def test_decode_serialized():
+	"""
+	Deserialize the object serialized above - it should behave like the original
+	objects.
+	"""
 	serialized = test_encode_object()
 	coll = decode(serialized)
 	assert len(coll.items) == 3