def METHOD_NAME(self):
    self.build_example_data()
    self.interface.stream = TestCobsProtocol.CobsStream()
    self.interface.add_protocol(CobsProtocol, [], "READ_WRITE")
    for decoded, encoded in self.examples:
        TestCobsProtocol.buffer = encoded
        packet = self.interface.read()
        self.assertEqual(packet.buffer, decoded)