'Test that if Unjellyable is used to deserialize a jellied object,
state comes out right.'

def test_unjellyable(self):

    class JellyableTestClass(jelly.Jellyable, ):
        pass
    jelly.setUnjellyableForClass(JellyableTestClass, jelly.Unjellyable)
    input = JellyableTestClass()
    input.attribute = 'value'
    output = jelly.unjelly(jelly.jelly(input))
    self.assertEqual(output.attribute, 'value')
    self.assertIsInstance(output, jelly.Unjellyable)
