# Path: zoonado/protocol/create.py
# class CreateRequest(Request):
# class CreateResponse(Response):
# class Create2Request(CreateRequest):
# class Create2Response(Response):
#     EPHEMERAL_FLAG = 1 << 0
#     SEQUENTIAL_FLAG = 1 << 1
#     CONTAINER_FLAG = 1 << 2
#     def set_flags(self, ephemeral=False, sequential=False, container=False):


import unittest
from zoonado.protocol import create



class CreateProtocolTests(unittest.TestCase):

    def test_set_flags_defaults_to_false(self):
        c = create.CreateRequest(path="/foo/bar", data=None, acl=[])

        c.set_flags()

        self.assertEqual(c.flags, 0)

    def test_setting_all_flags(self):

# Path: zoonado/protocol/create.py
# class CreateRequest(Request):
# class CreateResponse(Response):
# class Create2Request(CreateRequest):
# class Create2Response(Response):
#     EPHEMERAL_FLAG = 1 << 0
#     SEQUENTIAL_FLAG = 1 << 1
#     CONTAINER_FLAG = 1 << 2
#     def set_flags(self, ephemeral=False, sequential=False, container=False):


# Path: tests/protocol/test_create.py
import unittest
from zoonado.protocol import create




class CreateProtocolTests(unittest.TestCase):

    def test_set_flags_defaults_to_false(self):
        c = create.CreateRequest(path="/foo/bar", data=None, acl=[])

        c.set_flags()

        self.assertEqual(c.flags, 0)

    def test_setting_all_flags(self):

        c = create.CreateRequest(path="/foo/bar", data=None, acl=[])