# Path: zoonado/protocol/request.py
# class Request(Part):
#     def serialize(self, xid=None):
# 
# 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 unittest
from mock import patch
from zoonado.protocol import request, primitives



class RequestTests(unittest.TestCase):

    @patch.object(request, "struct")
    def test_serialize_without_xid_or_opcode(self, mock_struct):
        mock_struct.pack.return_value = b"fake result"


# Path: zoonado/protocol/request.py
# class Request(Part):
#     def serialize(self, xid=None):
# 
# 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_request.py
import unittest
from mock import patch
from zoonado.protocol import request, primitives




class RequestTests(unittest.TestCase):

    @patch.object(request, "struct")
    def test_serialize_without_xid_or_opcode(self, mock_struct):
        mock_struct.pack.return_value = b"fake result"


        class FakeRequest(request.Request):