
from twisted.trial.unittest import TestCase
from twisted.test import proto_helpers
from twisted.internet import reactor
from ebu_tt_live.twisted.websocket import BroadcastServerFactory, BroadcastServerProtocol
from mock import MagicMock


class TestBroadcastServerFactory(TestCase):

    def setUp(self):
        self.factory = BroadcastServerFactory()
        self.proto = BroadcastServerProtocol()
        self.proto.factory = self.factory
        self.tr = proto_helpers.StringTransport()
        self.proto.makeConnection(transport=self.tr)

    def tearDown(self):
        pass

    def test_connection_made(self):
        # TODO: work out a better way to do this
        pass


from twisted.trial.unittest import TestCase
from twisted.test import proto_helpers
from twisted.internet import reactor
from ebu_tt_live.twisted.websocket import BroadcastServerFactory, BroadcastServerProtocol
from mock import MagicMock


class TestBroadcastServerFactory(TestCase):

    def setUp(self):
        self.factory = BroadcastServerFactory()
        self.proto = BroadcastServerProtocol()
        self.proto.factory = self.factory
        self.tr = proto_helpers.StringTransport()
        # self.proto.makeConnection(transport=self.tr)

    def tearDown(self):
        pass

    def test_connection_made(self):
        # TODO: work out a better way to do this
        pass

switch off this test for now