# Path: magnumclient/tests/utils.py
# FAKE_ENV = {'OS_USERNAME': 'username',
#             'OS_PASSWORD': 'password',
#             'OS_PROJECT_NAME': 'project_name',
#             'OS_AUTH_URL': 'http://no.where/v2.0'}
#     TEST_REQUEST_BASE = {
#         'verify': True,
#     }
# class BaseTestCase(testtools.TestCase):
# class FakeAPI(object):
# class FakeConnection(object):
# class FakeResponse(object):
# class FakeServiceCatalog(object):
# class FakeKeystone(object):
# class TestCase(testtools.TestCase):
# class FakeSessionResponse(object):
# class FakeSession(object):
#     def setUp(self):
#     def __init__(self, responses):
#     def _request(self, method, url, headers=None, body=None):
#     def raw_request(self, *args, **kwargs):
#     def json_request(self, *args, **kwargs):
#     def __init__(self, response=None, **kwargs):
#     def request(self, method, conn_url, **kwargs):
#     def setresponse(self, response):
#     def getresponse(self):
#     def __init__(self, headers, body=None, version=None, status=None,
#                  reason=None):
#     def __getitem__(self, key):
#     def getheaders(self):
#     def getheader(self, key, default):
#     def read(self, amt):
#     def url_for(self, endpoint_type, service_type, attr=None,
#                 filter_value=None):
#     def __init__(self, auth_token):
#     def setUp(self):
#     def make_env(self, exclude=None, fake_env=FAKE_ENV):
#     def shell(self, argstr, exitcodes=(0,)):
#     def __init__(self, headers, content=None, status_code=None):
#     def json(self):
#     def __init__(self, headers, content=None, status_code=None):
#     def request(self, url, method, **kwargs):
# 
# Path: magnumclient/v1/quotas.py
# CREATION_ATTRIBUTES = ['project_id', 'resource', 'hard_limit']
# class Quotas(basemodels.BaseModel):
# class QuotasManager(basemodels.BaseModelManager):
#     def _path(id=None, resource=None):
#     def list(self, limit=None, marker=None, sort_key=None,
#              sort_dir=None, all_tenants=False):
#     def get(self, id, resource):
#     def create(self, **kwargs):
#     def delete(self, id, resource):
#     def update(self, id, resource, patch):


import copy
import testtools
from testtools import matchers
from magnumclient.tests import utils
from magnumclient.v1 import quotas
#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.





QUOTA1 = {
    'id': 123,
    'resource': "Cluster",
    'hard_limit': 5,
    'project_id': 'abc'
}

QUOTA2 = {
    'id': 124,
    'resource': "Cluster",
    'hard_limit': 10,
    'project_id': 'bcd'
}

CREATE_QUOTA = copy.deepcopy(QUOTA1)
del CREATE_QUOTA['id']

UPDATED_QUOTA = copy.deepcopy(QUOTA2)

# Path: magnumclient/tests/utils.py
# FAKE_ENV = {'OS_USERNAME': 'username',
#             'OS_PASSWORD': 'password',
#             'OS_PROJECT_NAME': 'project_name',
#             'OS_AUTH_URL': 'http://no.where/v2.0'}
#     TEST_REQUEST_BASE = {
#         'verify': True,
#     }
# class BaseTestCase(testtools.TestCase):
# class FakeAPI(object):
# class FakeConnection(object):
# class FakeResponse(object):
# class FakeServiceCatalog(object):
# class FakeKeystone(object):
# class TestCase(testtools.TestCase):
# class FakeSessionResponse(object):
# class FakeSession(object):
#     def setUp(self):
#     def __init__(self, responses):
#     def _request(self, method, url, headers=None, body=None):
#     def raw_request(self, *args, **kwargs):
#     def json_request(self, *args, **kwargs):
#     def __init__(self, response=None, **kwargs):
#     def request(self, method, conn_url, **kwargs):
#     def setresponse(self, response):
#     def getresponse(self):
#     def __init__(self, headers, body=None, version=None, status=None,
#                  reason=None):
#     def __getitem__(self, key):
#     def getheaders(self):
#     def getheader(self, key, default):
#     def read(self, amt):
#     def url_for(self, endpoint_type, service_type, attr=None,
#                 filter_value=None):
#     def __init__(self, auth_token):
#     def setUp(self):
#     def make_env(self, exclude=None, fake_env=FAKE_ENV):
#     def shell(self, argstr, exitcodes=(0,)):
#     def __init__(self, headers, content=None, status_code=None):
#     def json(self):
#     def __init__(self, headers, content=None, status_code=None):
#     def request(self, url, method, **kwargs):
# 
# Path: magnumclient/v1/quotas.py
# CREATION_ATTRIBUTES = ['project_id', 'resource', 'hard_limit']
# class Quotas(basemodels.BaseModel):
# class QuotasManager(basemodels.BaseModelManager):
#     def _path(id=None, resource=None):
#     def list(self, limit=None, marker=None, sort_key=None,
#              sort_dir=None, all_tenants=False):
#     def get(self, id, resource):
#     def create(self, **kwargs):
#     def delete(self, id, resource):
#     def update(self, id, resource, patch):


# Path: magnumclient/tests/v1/test_quotas.py
import copy
import testtools
from testtools import matchers
from magnumclient.tests import utils
from magnumclient.v1 import quotas

#         http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
#    License for the specific language governing permissions and limitations
#    under the License.





QUOTA1 = {
    'id': 123,
    'resource': "Cluster",
    'hard_limit': 5,
    'project_id': 'abc'
}

QUOTA2 = {
    'id': 124,
    'resource': "Cluster",
    'hard_limit': 10,
    'project_id': 'bcd'
}

CREATE_QUOTA = copy.deepcopy(QUOTA1)
del CREATE_QUOTA['id']

UPDATED_QUOTA = copy.deepcopy(QUOTA2)

NEW_HARD_LIMIT = 20