'L{twisted.python.compat._bytesRepr} raises a
L{TypeError} when called any object that is not an instance of
L{bytes}.'

def test_bytesReprNotBytes(self):

    exc = self.assertRaises(TypeError, _bytesRepr, ['not    bytes'])
    self.assertEquals(str(exc), "Expected    bytes    not    ['not    bytes']")
