示例#1
0
    def test_it_should_build_a_runner(self):
        options, args = sampleOptions("--configuration tests/mocks/veripy.cfg host")

        c = Configuration(args, options, MockInterface())
        r = c.build_runner()

        self.assertTrue(isinstance(r, Runner))
示例#2
0
    def test_it_should_give_the_runner_a_pointer_back_to_the_configuration(self):
        options, args = sampleOptions("--configuration tests/mocks/veripy.cfg host")

        c = Configuration(args, options, MockInterface())
        r = c.build_runner()

        self.assertEqual(c, r._Runner__config)
示例#3
0
    def test_it_should_build_a_runner(self):
        options, args = sampleOptions(
            "--configuration tests/mocks/veripy.cfg host")

        c = Configuration(args, options, MockInterface())
        r = c.build_runner()

        self.assertTrue(isinstance(r, Runner))
示例#4
0
    def test_it_should_give_the_runner_a_pointer_back_to_the_configuration(
            self):
        options, args = sampleOptions(
            "--configuration tests/mocks/veripy.cfg host")

        c = Configuration(args, options, MockInterface())
        r = c.build_runner()

        self.assertEqual(c, r._Runner__config)