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))
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))
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)
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)