# Path: zeusproject/commands.py
# class CreateFolderException(Exception):
# class DuplicateModuleException(Exception):
# class DuplicateException(Exception):
# class RenameFolder(Exception):
# class StructProject:
# class Module(StructProject):
# class Template(StructProject):
# class Project(StructProject):
#     def __init__(self, name_project, author, domain):
#     def _clean_name(self, name):
#     def _adjust_domain(self, domain):
#     def copy_struct(self):
#     def random(size=32):
#     def rename_folder(src, dst):
#     def write(self, dst, templatef, context, templatefld=None):
#     def __init__(self, name_project, author, domain):
#     def ger_std_modules(self):
#     def _get_modules(self):
#     def ger_custom(self, name):
#     def update_app(self, custom_name):
#     def __init__(self, name_project, author, domain):
#     def ger_custom(self, name):
#     def __init__(self, name_project, author, domain):
#     def _extensions(self):
#     def _config(self):
#     def _app(self):
#     def _manage(self):
#     def _license(self):
#     def _readme(self):
#     def _fabfile(self):
#     def _uwsgi(self):
#     def _uwsgi_log_folder(self):
#     def _config_files(self):
#     def generate(self):
# def get_arguments():


import os
import pytest
from zeusproject import commands
"""
    zeusproject.testsuite.tests
    ~~~~~~~~~~~~~~~~~~~~~~
    Who tests the tests?
    :copyright: (c) 2016 by the Lab804 Team.
    :license: BSD, see LICENSE for more details.
"""



@pytest.mark.test_module
class TestModule():
    """Testing Module."""

    project_f = os.path.join(os.getcwd(), "tests/ex")
    print(project_f)
    module = commands.Module(name_project=project_f,
                             author="Testuser",
                             domain="lab804.com.br")

    def test_instance(self):
        """Testing is instance of module."""
        assert True == isinstance(self.module, commands.Module)

    def test_path_not_exist(self):
        """Path project not exist."""
        with pytest.raises(Exception):

# Path: zeusproject/commands.py
# class CreateFolderException(Exception):
# class DuplicateModuleException(Exception):
# class DuplicateException(Exception):
# class RenameFolder(Exception):
# class StructProject:
# class Module(StructProject):
# class Template(StructProject):
# class Project(StructProject):
#     def __init__(self, name_project, author, domain):
#     def _clean_name(self, name):
#     def _adjust_domain(self, domain):
#     def copy_struct(self):
#     def random(size=32):
#     def rename_folder(src, dst):
#     def write(self, dst, templatef, context, templatefld=None):
#     def __init__(self, name_project, author, domain):
#     def ger_std_modules(self):
#     def _get_modules(self):
#     def ger_custom(self, name):
#     def update_app(self, custom_name):
#     def __init__(self, name_project, author, domain):
#     def ger_custom(self, name):
#     def __init__(self, name_project, author, domain):
#     def _extensions(self):
#     def _config(self):
#     def _app(self):
#     def _manage(self):
#     def _license(self):
#     def _readme(self):
#     def _fabfile(self):
#     def _uwsgi(self):
#     def _uwsgi_log_folder(self):
#     def _config_files(self):
#     def generate(self):
# def get_arguments():


# Path: tests/test_module.py
import os
import pytest
from zeusproject import commands

"""
    zeusproject.testsuite.tests
    ~~~~~~~~~~~~~~~~~~~~~~
    Who tests the tests?
    :copyright: (c) 2016 by the Lab804 Team.
    :license: BSD, see LICENSE for more details.
"""



@pytest.mark.test_module
class TestModule():
    """Testing Module."""

    project_f = os.path.join(os.getcwd(), "tests/ex")
    print(project_f)
    module = commands.Module(name_project=project_f,
                             author="Testuser",
                             domain="lab804.com.br")

    def test_instance(self):
        """Testing is instance of module."""
        assert True == isinstance(self.module, commands.Module)

    def test_path_not_exist(self):
        """Path project not exist."""
        with pytest.raises(Exception):

            commands.Module(name_project="path_not_exist",