'Any L{bytes} objects will be saved as if they are latin-1 so they can
be faithfully re-loaded.'

def test_saveBytes(self):

    def asbytes(x):
        if (bytes is str):
            return ''.join(map(chr, x))
        else:
            return bytes(x)
    inputEvent = {'hello': asbytes(range(255))}
    if (bytes is not str):
        inputEvent.update({'skipped': 'okay'})
    self.assertEqual(eventFromJSON(self.savedEventJSON(inputEvent)), {u'hello': asbytes(range(255)).decode('charmap')})
