# Path: ebu_tt_live/carriage/interface.py
# class ICarriageMechanism(object):
# class IProducerCarriage(ICarriageMechanism):
# class IConsumerCarriage(ICarriageMechanism):
#     def expects(cls):
#     def register_producer_node(self, node):
#     def producer_node(self):
#     def emit_data(self, data, **kwargs):
#     def resume_producing(self):
#     def provides(cls):
#     def register_consumer_node(self, node):
#     def consumer_node(self):
#     def on_new_data(self, data, **kwargs):
# 
# Path: ebu_tt_live/carriage/base.py
# class AbstractCarriage(object):
# class AbstractProducerCarriage(IProducerCarriage, AbstractCarriage):
# class AbstractConsumerCarriage(IConsumerCarriage, AbstractCarriage):
# class AbstractCombinedCarriage(AbstractConsumerCarriage, AbstractProducerCarriage):
#     def is_document(self, document):
#     def register_producer_node(self, node):
#     def producer_node(self):
#     def resume_producing(self):
#     def register_consumer_node(self, node):
#     def consumer_node(self):
# 
# Path: ebu_tt_live/node/interface.py
# class INode(object):
# class IProducerNode(INode):
# class IConsumerNode(INode):
#     def process_document(self, document, **kwargs):
#     def resume_producing(self):
#     def provides(cls):
#     def producer_carriage(self):
#     def register_producer_carriage(self, producer_carriage):
#     def expects(cls):
#     def consumer_carriage(self):
#     def register_consumer_carriage(self, consumer_carriage):
# 
# Path: ebu_tt_live/errors.py
# class ComponentCompatError(TypeError):
#     pass
# 
# class DataCompatError(TypeError):
#     pass


from unittest import TestCase
from ebu_tt_live.carriage import interface as carriage_interface
from ebu_tt_live.carriage import base as carriage_base
from ebu_tt_live.node import interface as node_interface
from ebu_tt_live.errors import ComponentCompatError, DataCompatError
from mock import MagicMock


class DummyDataTypeA(object):
    pass


class DummyDataTypeB(object):
    pass


class TestABCs(TestCase):

    def test_interfaces(self):
        self.assertRaises(TypeError, carriage_interface.ICarriageMechanism)
        self.assertRaises(TypeError, carriage_interface.IProducerCarriage)

# Path: ebu_tt_live/carriage/interface.py
# class ICarriageMechanism(object):
# class IProducerCarriage(ICarriageMechanism):
# class IConsumerCarriage(ICarriageMechanism):
#     def expects(cls):
#     def register_producer_node(self, node):
#     def producer_node(self):
#     def emit_data(self, data, **kwargs):
#     def resume_producing(self):
#     def provides(cls):
#     def register_consumer_node(self, node):
#     def consumer_node(self):
#     def on_new_data(self, data, **kwargs):
# 
# Path: ebu_tt_live/carriage/base.py
# class AbstractCarriage(object):
# class AbstractProducerCarriage(IProducerCarriage, AbstractCarriage):
# class AbstractConsumerCarriage(IConsumerCarriage, AbstractCarriage):
# class AbstractCombinedCarriage(AbstractConsumerCarriage, AbstractProducerCarriage):
#     def is_document(self, document):
#     def register_producer_node(self, node):
#     def producer_node(self):
#     def resume_producing(self):
#     def register_consumer_node(self, node):
#     def consumer_node(self):
# 
# Path: ebu_tt_live/node/interface.py
# class INode(object):
# class IProducerNode(INode):
# class IConsumerNode(INode):
#     def process_document(self, document, **kwargs):
#     def resume_producing(self):
#     def provides(cls):
#     def producer_carriage(self):
#     def register_producer_carriage(self, producer_carriage):
#     def expects(cls):
#     def consumer_carriage(self):
#     def register_consumer_carriage(self, consumer_carriage):
# 
# Path: ebu_tt_live/errors.py
# class ComponentCompatError(TypeError):
#     pass
# 
# class DataCompatError(TypeError):
#     pass


# Path: ebu_tt_live/carriage/test/test_base_carriage.py
from unittest import TestCase
from ebu_tt_live.carriage import interface as carriage_interface
from ebu_tt_live.carriage import base as carriage_base
from ebu_tt_live.node import interface as node_interface
from ebu_tt_live.errors import ComponentCompatError, DataCompatError
from mock import MagicMock



class DummyDataTypeA(object):
    pass


class DummyDataTypeB(object):
    pass


class TestABCs(TestCase):

    def test_interfaces(self):
        self.assertRaises(TypeError, carriage_interface.ICarriageMechanism)
        self.assertRaises(TypeError, carriage_interface.IProducerCarriage)

        self.assertRaises(TypeError, carriage_interface.IConsumerCarriage)