Example #1
0
    def test_default_binding(self):
        app = build_app([TDefaultPortService()], 'DefaultPortTest',
                        'DefaultBindingName')

        wrapper = AppTestWrapper(app)

        self._default_binding(wrapper, "DefaultBindingName", 1)
Example #2
0
    def test_default_port_type(self):
        # Test the default port is created
        # Test the default port has the correct name
        app = build_app([TDefaultPortService()], 'DefaultPortTest',
                        'DefaultPortName')

        wrapper = AppTestWrapper(app)
        self._default_port_type(wrapper, 'DefaultPortName', 1)
Example #3
0
    def test_default_binding_methods(self):
        app = build_app([TDefaultPortService()], 'DefaultPortTest',
                        'DefaultPortMethods')

        wrapper = AppTestWrapper(app)

        self._default_binding_methods(wrapper, 1,
                                      ['echo_default_port_service'])