#!/usr/bin/env python

import unittest
import os.path
from macropolo import MacroTestCase, JSONTestCaseLoader
from macropolo.environments import SheerEnvironment

class CFGovTestCase(SheerEnvironment, MacroTestCase):
    """
    A MacroTestCase subclass for cfgov-refresh.
    """


    def search_root(self):
        """
        Return the root of the search path for templates.
        """
        # Get the cfgov-refresh root dir, ../../../
        # PLEASE NOTE: This presumes that the file containing the test always
        # lives three levels above the cfgov-refresh root.

        templates = os.path.abspath(os.path.join(
            os.path.dirname(__file__),
            os.pardir,
            os.pardir,
            'cfgov/jinja2/v1'))

        return templates


    def search_exceptions(self):
        """
        Return a list of subdirectory names that should not be searched
        for templates.
        """
        templates = 'cfgov/jinja2/v1'
        return [
            templates + '/_defaults',
            templates + '/_lib',
            templates + '/_queries',
            templates + '/_settings',
            'test',
            'config'
        ]


# Create CFGovTestCase subclasses for all JSON tests.
tests_path = os.path.abspath(os.path.join(os.path.dirname( __file__ ), 'tests'))
JSONTestCaseLoader(tests_path, CFGovTestCase, globals())


# Run the tests if we're executed
if __name__ == '__main__':
    unittest.main()

3759ae3c5903c788ecd3d7a0140b051ad0be5c3e
<mask token>


class CFGovTestCase(SheerEnvironment, MacroTestCase):
    """
    A MacroTestCase subclass for cfgov-refresh.
    """

    def search_root(self):
        """
        Return the root of the search path for templates.
        """
        templates = os.path.abspath(os.path.join(os.path.dirname(__file__),
            os.pardir, os.pardir, 'cfgov/jinja2/v1'))
        return templates

    def search_exceptions(self):
        """
        Return a list of subdirectory names that should not be searched
        for templates.
        """
        templates = 'cfgov/jinja2/v1'
        return [templates + '/_defaults', templates + '/_lib', templates +
            '/_queries', templates + '/_settings', 'test', 'config']


<mask token>

<mask token>


class CFGovTestCase(SheerEnvironment, MacroTestCase):
    """
    A MacroTestCase subclass for cfgov-refresh.
    """

    def search_root(self):
        """
        Return the root of the search path for templates.
        """
        templates = os.path.abspath(os.path.join(os.path.dirname(__file__),
            os.pardir, os.pardir, 'cfgov/jinja2/v1'))
        return templates

    def search_exceptions(self):
        """
        Return a list of subdirectory names that should not be searched
        for templates.
        """
        templates = 'cfgov/jinja2/v1'
        return [templates + '/_defaults', templates + '/_lib', templates +
            '/_queries', templates + '/_settings', 'test', 'config']


<mask token>
JSONTestCaseLoader(tests_path, CFGovTestCase, globals())
if __name__ == '__main__':
    unittest.main()

<mask token>


class CFGovTestCase(SheerEnvironment, MacroTestCase):
    """
    A MacroTestCase subclass for cfgov-refresh.
    """

    def search_root(self):
        """
        Return the root of the search path for templates.
        """
        templates = os.path.abspath(os.path.join(os.path.dirname(__file__),
            os.pardir, os.pardir, 'cfgov/jinja2/v1'))
        return templates

    def search_exceptions(self):
        """
        Return a list of subdirectory names that should not be searched
        for templates.
        """
        templates = 'cfgov/jinja2/v1'
        return [templates + '/_defaults', templates + '/_lib', templates +
            '/_queries', templates + '/_settings', 'test', 'config']


tests_path = os.path.abspath(os.path.join(os.path.dirname(__file__), 'tests'))
JSONTestCaseLoader(tests_path, CFGovTestCase, globals())
if __name__ == '__main__':
    unittest.main()

import unittest
import os.path
from macropolo import MacroTestCase, JSONTestCaseLoader
from macropolo.environments import SheerEnvironment


class CFGovTestCase(SheerEnvironment, MacroTestCase):
    """
    A MacroTestCase subclass for cfgov-refresh.
    """

    def search_root(self):
        """
        Return the root of the search path for templates.
        """
        templates = os.path.abspath(os.path.join(os.path.dirname(__file__),
            os.pardir, os.pardir, 'cfgov/jinja2/v1'))
        return templates

    def search_exceptions(self):
        """
        Return a list of subdirectory names that should not be searched
        for templates.
        """
        templates = 'cfgov/jinja2/v1'
        return [templates + '/_defaults', templates + '/_lib', templates +
            '/_queries', templates + '/_settings', 'test', 'config']


tests_path = os.path.abspath(os.path.join(os.path.dirname(__file__), 'tests'))
JSONTestCaseLoader(tests_path, CFGovTestCase, globals())
if __name__ == '__main__':
    unittest.main()

#!/usr/bin/env python

import unittest
import os.path
from macropolo import MacroTestCase, JSONTestCaseLoader
from macropolo.environments import SheerEnvironment

class CFGovTestCase(SheerEnvironment, MacroTestCase):
    """
    A MacroTestCase subclass for cfgov-refresh.
    """


    def search_root(self):
        """
        Return the root of the search path for templates.
        """
        # Get the cfgov-refresh root dir, ../../../
        # PLEASE NOTE: This presumes that the file containing the test always
        # lives three levels above the cfgov-refresh root.

        templates = os.path.abspath(os.path.join(
            os.path.dirname(__file__),
            os.pardir,
            os.pardir,
            'cfgov/jinja2/v1'))

        return templates


    def search_exceptions(self):
        """
        Return a list of subdirectory names that should not be searched
        for templates.
        """
        templates = 'cfgov/jinja2/v1'
        return [
            templates + '/_defaults',
            templates + '/_lib',
            templates + '/_queries',
            templates + '/_settings',
            'test',
            'config'
        ]


# Create CFGovTestCase subclasses for all JSON tests.
tests_path = os.path.abspath(os.path.join(os.path.dirname( __file__ ), 'tests'))
JSONTestCaseLoader(tests_path, CFGovTestCase, globals())


# Run the tests if we're executed
if __name__ == '__main__':
    unittest.main()
