# Path: alephnull/finance/blotter.py
# ORDER_STATUS = Enum(
#     'OPEN',
#     'FILLED',
#     'CANCELLED'
# )


from logbook import FileHandler
from alephnull.finance.blotter import ORDER_STATUS
            "")

    test.assertEqual(
        len(closing_positions),
        1,
        "Portfolio should have one position."
    )

    sid = test.zipline_test_config['sid']
    test.assertEqual(
        closing_positions[0]['sid'],
        sid,
        "Portfolio should have one position in " + str(sid)
    )

    return output, transaction_count


class ExceptionSource(object):

    def __init__(self):
        pass

    def get_hash(self):
        return "ExceptionSource"

    def __iter__(self):
        return self

    def next(self):

# Path: alephnull/finance/blotter.py
# ORDER_STATUS = Enum(
#     'OPEN',
#     'FILLED',
#     'CANCELLED'
# )


# Path: alephnull/utils/test_utils.py
from logbook import FileHandler
from alephnull.finance.blotter import ORDER_STATUS

            "")

    test.assertEqual(
        len(closing_positions),
        1,
        "Portfolio should have one position."
    )

    sid = test.zipline_test_config['sid']
    test.assertEqual(
        closing_positions[0]['sid'],
        sid,
        "Portfolio should have one position in " + str(sid)
    )

    return output, transaction_count


class ExceptionSource(object):

    def __init__(self):
        pass

    def get_hash(self):
        return "ExceptionSource"

    def __iter__(self):
        return self

    def next(self):

        5 / 0