# Path: project/user/services/create_user_service.py
# class CreateUserService:
# 
#     def __init__(self, username, password, generate_api_key=True, *args, **kwargs):
#         self.username = username
#         self.password = password
#         self.generate_api_key = generate_api_key
#         self.args = args
#         self.kwargs = kwargs
# 
#     def call(self):
#         self.kwargs.update(dict(username=self.username, password=self.password))
#         user = User(**self.kwargs)
#         db.session.add(user)
#         db.session.commit()
# 
#         ResetUserPasswordService(user, self.password).call()
#         if self.generate_api_key:
#             GenerateUserApiKeyService(user).call()
# 
#         return user


from project.user.services.create_user_service import CreateUserService
# !/usr/bin/python
# -*- coding: utf-8 -*-


class UserTestUtils(object):

    def setUp(self):
        super(UserTestUtils, self).setUp()


# Path: project/user/services/create_user_service.py
# class CreateUserService:
# 
#     def __init__(self, username, password, generate_api_key=True, *args, **kwargs):
#         self.username = username
#         self.password = password
#         self.generate_api_key = generate_api_key
#         self.args = args
#         self.kwargs = kwargs
# 
#     def call(self):
#         self.kwargs.update(dict(username=self.username, password=self.password))
#         user = User(**self.kwargs)
#         db.session.add(user)
#         db.session.commit()
# 
#         ResetUserPasswordService(user, self.password).call()
#         if self.generate_api_key:
#             GenerateUserApiKeyService(user).call()
# 
#         return user


# Path: project/tests/utils/user.py
from project.user.services.create_user_service import CreateUserService

# !/usr/bin/python
# -*- coding: utf-8 -*-


class UserTestUtils(object):

    def setUp(self):
        super(UserTestUtils, self).setUp()


    @staticmethod