def __init__(self, host, port, **kwargs):
        path = os.path.join(Server32.examples_dir(), 'cpp_lib32')
        super(Print32, self).__init__(path, 'cdll', host, port)

        if kwargs['show'] == 'True':
            print('this is a message')
            print('there is a problem', file=sys.stderr)
Esempio n. 2
0
 def __init__(self, host, port, quiet, **kwargs):
     path = os.path.join(Server32.examples_dir(), 'cpp_lib32')
     super(Quiet32, self).__init__(path, 'cdll', host, port, quiet)
     self._kwargs = kwargs
def test_examples_dir():
    assert Server32.examples_dir() == EXAMPLES_DIR

    e = Ex64()
    assert e.examples_dir() == EXAMPLES_DIR
    assert e.ex_dir() == EXAMPLES_DIR
 def __init__(self, host, port, **kwargs):
     # this class would not instantiate if Server32.examples_dir()
     # was incorrect, so the fact that the server starts already
     # demonstrates that this test passes
     path = os.path.join(Server32.examples_dir(), 'cpp_lib32')
     super(Ex32, self).__init__(path, 'cdll', host, port)
Esempio n. 5
0
 def __init__(self, host, port):
     path = os.path.join(Server32.examples_dir(), 'cpp_lib32')
     super(Site32, self).__init__(path, 'cdll', host, port)
Esempio n. 6
0
 def __init__(self, host, port, **kwargs):
     # load any dll since it won't be called
     path = os.path.join(Server32.examples_dir(), 'cpp_lib32')
     super(ArgParse32, self).__init__(path, 'cdll', host, port)
     self.kwargs = kwargs
Esempio n. 7
0
    def __init__(self, host, port):
        path = os.path.join(Server32.examples_dir(), 'cpp_lib32')
        super(Property32, self).__init__(path, 'cdll', host, port)

        self.three = self.lib.add(1, 2)