import unittest
from pyrope.server import *
from eskimoapps.testing.mock import Mock


class TestServer(unittest.TestCase):

    def testDuplicateRegisterFails(self):
        server = PyropeServer()
        app = Mock
        server.registerApplication(app)
        self.assertRaises(ApplicationAlreadyRegisteredException, server.
            registerApplication, app)


if __name__ == '__main__':
    unittest.main()

7dfaa90a719dd69d90ed055562dfdee5586e7e72
<mask token>


class TestServer(unittest.TestCase):
    <mask token>


<mask token>

<mask token>


class TestServer(unittest.TestCase):

    def testDuplicateRegisterFails(self):
        server = PyropeServer()
        app = Mock
        server.registerApplication(app)
        self.assertRaises(ApplicationAlreadyRegisteredException, server.
            registerApplication, app)


<mask token>

<mask token>


class TestServer(unittest.TestCase):

    def testDuplicateRegisterFails(self):
        server = PyropeServer()
        app = Mock
        server.registerApplication(app)
        self.assertRaises(ApplicationAlreadyRegisteredException, server.
            registerApplication, app)


if __name__ == '__main__':
    unittest.main()

import unittest
from pyrope.server import *
from eskimoapps.testing.mock import Mock


class TestServer(unittest.TestCase):

    def testDuplicateRegisterFails(self):
        server = PyropeServer()
        app = Mock
        server.registerApplication(app)
        self.assertRaises(ApplicationAlreadyRegisteredException, server.
            registerApplication, app)


if __name__ == '__main__':
    unittest.main()
