'Test that a slice is deserialized as a list.'

def test_slice(self):

    self.assertEqual(self.serialize(slice(2)), '{"start":null,"step":null,"stop":2}')
    self.assertEqual(self.serialize(slice(0, 2)), '{"start":0,"step":null,"stop":2}')
    self.assertEqual(self.serialize(slice(0, 10, 2)), '{"start":0,"step":2,"stop":10}')
    self.assertEqual(self.serialize(slice(0, None, 2)), '{"start":0,"step":2,"stop":null}')
    self.assertEqual(self.serialize(slice(None, None, None)), '{"start":null,"step":null,"stop":null}')
