# Path: pyvac/tests/case.py
# class ModelTestCase(TestCase):
# 
#     def setUp(self):
#         transaction.begin()
#         self.session = DBSession()
# 
#     def tearDown(self):
#         transaction.commit()


from datetime import datetime
from freezegun import freeze_time
from dateutil.relativedelta import relativedelta
from mock import patch, PropertyMock, MagicMock
from .case import ModelTestCase
        from pyvac.models import Group
        from pyvac.models import User
        from pyvac.models import User
        from pyvac.models import User
        from pyvac.models import User
        from pyvac.models import User
        from pyvac.models import User
        from pyvac.models import User
        from pyvac.models import User
        from pyvac.models import User
        from pyvac.models import User
        from pyvac.models import User
        from pyvac.models import User
        from pyvac.models import User, Request
        from pyvac.models import User, Request
        from pyvac.models import User, Request
        from pyvac.models import Request
        from pyvac.models import Request
        from pyvac.models import Request
        from pyvac.models import Request
        from pyvac.models import Request
        from pyvac.models import Request
        from pyvac.models import Request
        from pyvac.models import Request
        from pyvac.models import Request
        from pyvac.models import Request
        from pyvac.models import Request
        from pyvac.models import Request
        from pyvac.models import User, VacationType
        from pyvac.models import User, VacationType
        from pyvac.models import User, VacationType
        from pyvac.models import User, VacationType
        from pyvac.models import VacationType
        from pyvac.models import VacationType
        from pyvac.models import VacationType
        from pyvac.models import User
        from pyvac.models import CPLUVacation, CompensatoireVacation, User
        from pyvac.models import CPVacation, User
        from pyvac.models import Sudoer
        from pyvac.models import Sudoer
        from pyvac.models import User
        from pyvac.models import Sudoer
        from pyvac.models import User



def mock_pool(amount, date_start, date_end):
    mocked_pool = MagicMock()
    type(mocked_pool).amount = PropertyMock(return_value=amount)
    type(mocked_pool).date_start = PropertyMock(return_value=date_start) # noqa
    type(mocked_pool).date_end = PropertyMock(return_value=date_end) # noqa
    return mocked_pool



# Path: pyvac/tests/case.py
# class ModelTestCase(TestCase):
# 
#     def setUp(self):
#         transaction.begin()
#         self.session = DBSession()
# 
#     def tearDown(self):
#         transaction.commit()


# Path: pyvac/tests/test_models.py
from datetime import datetime
from freezegun import freeze_time
from dateutil.relativedelta import relativedelta
from mock import patch, PropertyMock, MagicMock
from .case import ModelTestCase
        from pyvac.models import Group
        from pyvac.models import User
        from pyvac.models import User
        from pyvac.models import User
        from pyvac.models import User
        from pyvac.models import User
        from pyvac.models import User
        from pyvac.models import User
        from pyvac.models import User
        from pyvac.models import User
        from pyvac.models import User
        from pyvac.models import User
        from pyvac.models import User
        from pyvac.models import User, Request
        from pyvac.models import User, Request
        from pyvac.models import User, Request
        from pyvac.models import Request
        from pyvac.models import Request
        from pyvac.models import Request
        from pyvac.models import Request
        from pyvac.models import Request
        from pyvac.models import Request
        from pyvac.models import Request
        from pyvac.models import Request
        from pyvac.models import Request
        from pyvac.models import Request
        from pyvac.models import Request
        from pyvac.models import Request
        from pyvac.models import User, VacationType
        from pyvac.models import User, VacationType
        from pyvac.models import User, VacationType
        from pyvac.models import User, VacationType
        from pyvac.models import VacationType
        from pyvac.models import VacationType
        from pyvac.models import VacationType
        from pyvac.models import User
        from pyvac.models import CPLUVacation, CompensatoireVacation, User
        from pyvac.models import CPVacation, User
        from pyvac.models import Sudoer
        from pyvac.models import Sudoer
        from pyvac.models import User
        from pyvac.models import Sudoer
        from pyvac.models import User




def mock_pool(amount, date_start, date_end):
    mocked_pool = MagicMock()
    type(mocked_pool).amount = PropertyMock(return_value=amount)
    type(mocked_pool).date_start = PropertyMock(return_value=date_start) # noqa
    type(mocked_pool).date_end = PropertyMock(return_value=date_end) # noqa
    return mocked_pool



class GroupTestCase(ModelTestCase):