示例#1
0
    def test_start(self):
        class OptionsDefault:
            funq_attach_exe = 'funq'
        appconf = client.ApplicationConfig(
            executable='command',
            global_options=OptionsDefault(),
        )

        ctx = client.ApplicationContext(
            appconf, client_class=lambda *a, **kwa: None)
        assert_equals(ctx._process.command, ['funq', 'command'])
示例#2
0
    def test_start_with_valgrind(self):
        class OptionsWithValgrind:
            funq_attach_exe = 'funq'
        appconf = client.ApplicationConfig(
            executable='command',
            with_valgrind=True,
            valgrind_args=[],
            global_options=OptionsWithValgrind(),
        )

        ctx = client.ApplicationContext(
            appconf, client_class=lambda *a, **kwa: None)
        assert_equals(ctx._process.command, ['funq', 'valgrind', 'command'])