@@ -0,0 +1,536 @@
+from graphite_api.encoders import JSONEncoder%0A%0Afrom . import TestCase%0A%0A%0Aclass EncoderTestCase(TestCase):%0A    def test_json_encoder(self):%0A        encoder = JSONEncoder()%0A%0A        with self.assertRaises(TypeError):%0A            encoder.default(object())%0A%0A        self.assertEqual(encoder.default(dict(%7B1: 2%7D)), %7B1: 2%7D)%0A        self.assertEqual(encoder.default(set(%5B4, 5, 6%5D)), %5B4, 5, 6%5D)%0A        self.assertEqual(encoder.default(DummyObject()), %5B7, 8, 9%5D)%0A%0A%0Aclass DummyObject(object):%0A    def tolist(self):%0A        return list(%5B7, 8, 9%5D)%0A

Add unittests for JSONEncoder