# Path: handroll/tests/factory.py
# class Factory(object):
#     """A factory to produce commonly needed objects"""
# 
#     def make_blog_post(self, **kwargs):
#         parameters = {
#             'date': datetime.datetime.now(),
#             'source_file': 'a_source_file.md',
#             'summary': 'The post summary',
#             'title': 'A Blog Post',
#             'route': '/a_source_file.html',
#             'url': 'http://www.example.com/a_source_file.html',
#             'posts': {},
#         }
#         parameters.update(kwargs)
#         return BlogPost(**parameters)
# 
#     def make_configuration(self):
#         config = Configuration()
#         config._domain = 'http://www.example.com'
#         return config
# 
#     def make_director(self):
#         config = self.make_configuration()
#         site = self.make_site()
#         return Director(config, site, [])
# 
#     def make_site(self):
#         """Make a valid site instance."""
#         site = tempfile.mkdtemp()
#         open(os.path.join(site, 'template.html'), 'w').close()
#         return Site(site)


import unittest
from handroll.tests.factory import Factory
# Copyright (c) 2017, Matt Layman




class TestCase(unittest.TestCase):

    def __init__(self, methodName='runTest'):
        super(TestCase, self).__init__(methodName)

# Path: handroll/tests/factory.py
# class Factory(object):
#     """A factory to produce commonly needed objects"""
# 
#     def make_blog_post(self, **kwargs):
#         parameters = {
#             'date': datetime.datetime.now(),
#             'source_file': 'a_source_file.md',
#             'summary': 'The post summary',
#             'title': 'A Blog Post',
#             'route': '/a_source_file.html',
#             'url': 'http://www.example.com/a_source_file.html',
#             'posts': {},
#         }
#         parameters.update(kwargs)
#         return BlogPost(**parameters)
# 
#     def make_configuration(self):
#         config = Configuration()
#         config._domain = 'http://www.example.com'
#         return config
# 
#     def make_director(self):
#         config = self.make_configuration()
#         site = self.make_site()
#         return Director(config, site, [])
# 
#     def make_site(self):
#         """Make a valid site instance."""
#         site = tempfile.mkdtemp()
#         open(os.path.join(site, 'template.html'), 'w').close()
#         return Site(site)


# Path: handroll/tests/testcase.py
import unittest
from handroll.tests.factory import Factory

# Copyright (c) 2017, Matt Layman




class TestCase(unittest.TestCase):

    def __init__(self, methodName='runTest'):
        super(TestCase, self).__init__(methodName)

        self.factory = Factory()