# Path: handroll/configuration.py
# class Configuration(object):
#     def __init__(self):
#     def domain(self):
#     def load_from_arguments(self, args):
#     def load_from_file(self, config_file):
#     def _find_extensions(self, parser):
# def build_config(config_file, args):
# 
# Path: handroll/exceptions.py
# class AbortError(Exception):
#     """Any fatal errors that would prevent handroll from proceeding should
#     signal with the ``AbortError`` exception."""


import inspect
import os
import tempfile
import unittest
from handroll import configuration
from handroll.exceptions import AbortError
# Copyright (c) 2017, Matt Layman




class FakeArgs(object):

    def __init__(self):
        self.force = False
        self.outdir = None
        self.timing = None


class TestConfiguration(unittest.TestCase):

    def test_loads_from_outdir_argument(self):
        config = configuration.Configuration()
        args = FakeArgs()
        args.outdir = 'out'

        config.load_from_arguments(args)

        expected = os.path.join(os.getcwd(), args.outdir)
        self.assertEqual(expected, config.outdir)


# Path: handroll/configuration.py
# class Configuration(object):
#     def __init__(self):
#     def domain(self):
#     def load_from_arguments(self, args):
#     def load_from_file(self, config_file):
#     def _find_extensions(self, parser):
# def build_config(config_file, args):
# 
# Path: handroll/exceptions.py
# class AbortError(Exception):
#     """Any fatal errors that would prevent handroll from proceeding should
#     signal with the ``AbortError`` exception."""


# Path: handroll/tests/test_configuration.py
import inspect
import os
import tempfile
import unittest
from handroll import configuration
from handroll.exceptions import AbortError

# Copyright (c) 2017, Matt Layman




class FakeArgs(object):

    def __init__(self):
        self.force = False
        self.outdir = None
        self.timing = None


class TestConfiguration(unittest.TestCase):

    def test_loads_from_outdir_argument(self):
        config = configuration.Configuration()
        args = FakeArgs()
        args.outdir = 'out'

        config.load_from_arguments(args)

        expected = os.path.join(os.getcwd(), args.outdir)
        self.assertEqual(expected, config.outdir)


    def test_loads_from_force_argument(self):