Пример #1
0
    def test_it_should_build_a_report(self):
        options, args = sampleOptions("--configuration tests/mocks/veripy.cfg host")

        c = Configuration(args, options)
        r = c.build_report()

        self.assertTrue(isinstance(r, Report))
Пример #2
0
    def test_it_should_build_a_report(self):
        options, args = sampleOptions(
            "--configuration tests/mocks/veripy.cfg host")

        c = Configuration(args, options)
        r = c.build_report()

        self.assertTrue(isinstance(r, Report))
Пример #3
0
    def test_it_should_pass_configuration_into_the_build_report(self):
        options, args = sampleOptions("--configuration tests/mocks/veripy.cfg --title Report --vendor veripy --device Desktop --notes Lorem. host")

        c = Configuration(args, options)
        r = c.build_report()

        self.assertEqual("host", r.klass)
        self.assertEqual("Report", r.title)
        self.assertEqual("veripy", r.vendor)
        self.assertEqual("Desktop", r.device)
        self.assertEqual("Lorem.", r.notes)
Пример #4
0
    def test_it_should_pass_configuration_into_the_build_report(self):
        options, args = sampleOptions(
            "--configuration tests/mocks/veripy.cfg --title Report --vendor veripy --device Desktop --notes Lorem. host"
        )

        c = Configuration(args, options)
        r = c.build_report()

        self.assertEqual("host", r.klass)
        self.assertEqual("Report", r.title)
        self.assertEqual("veripy", r.vendor)
        self.assertEqual("Desktop", r.device)
        self.assertEqual("Lorem.", r.notes)