# Path: zoonado/protocol/response.py
# class ResponseMeta(type):
# class Response(Part):
#     def __new__(cls, name, bases, attrs):
#     def deserialize(cls, raw_bytes):
# 
# Path: zoonado/protocol/primitives.py
# class Primitive(object):
# class VariablePrimitive(Primitive):
# class Bool(Primitive):
# class Byte(Primitive):
# class Int(Primitive):
# class Long(Primitive):
# class Float(Primitive):
# class Double(Primitive):
# class UString(VariablePrimitive):
# class Buffer(VariablePrimitive):
# class Vector(Primitive):
#     def __init__(self, value):
#     def render(self):
#     def parse(cls, buff, offset):
#     def __eq__(self, other):
#     def __str__(self):
#     def render_value(self, value):
#     def parse_value(cls, value):
#     def render(self):
#     def parse(cls, buff, offset):
#     def render_value(self, value):
#     def parse_value(cls, value):
#     def __str__(self):
#     def render_value(self, value):
#     def parse_value(cls, value):
#     def of(cls, part_class):
#     def render(self):
#     def parse(cls, buff, offset):
#     def __str__(self):


import struct
import unittest
from zoonado.protocol import response, primitives



class ResponseTests(unittest.TestCase):

    def test_deserialize(self):

        class FakeResponse(response.Response):
            opcode = 99

            parts = (
                ("first", primitives.Int),

# Path: zoonado/protocol/response.py
# class ResponseMeta(type):
# class Response(Part):
#     def __new__(cls, name, bases, attrs):
#     def deserialize(cls, raw_bytes):
# 
# Path: zoonado/protocol/primitives.py
# class Primitive(object):
# class VariablePrimitive(Primitive):
# class Bool(Primitive):
# class Byte(Primitive):
# class Int(Primitive):
# class Long(Primitive):
# class Float(Primitive):
# class Double(Primitive):
# class UString(VariablePrimitive):
# class Buffer(VariablePrimitive):
# class Vector(Primitive):
#     def __init__(self, value):
#     def render(self):
#     def parse(cls, buff, offset):
#     def __eq__(self, other):
#     def __str__(self):
#     def render_value(self, value):
#     def parse_value(cls, value):
#     def render(self):
#     def parse(cls, buff, offset):
#     def render_value(self, value):
#     def parse_value(cls, value):
#     def __str__(self):
#     def render_value(self, value):
#     def parse_value(cls, value):
#     def of(cls, part_class):
#     def render(self):
#     def parse(cls, buff, offset):
#     def __str__(self):


# Path: tests/protocol/test_response.py
import struct
import unittest
from zoonado.protocol import response, primitives




class ResponseTests(unittest.TestCase):

    def test_deserialize(self):

        class FakeResponse(response.Response):
            opcode = 99

            parts = (
                ("first", primitives.Int),

                ("second", primitives.UString),