Example #1
0
 def test_aimless_data_aimless_xml_file_no_data(self):
     s = aimlessReport(
         xml_file=self.test_files.TEST_AIMLESS_XML_FILE_NO_DATA)
     data = s.return_data()
     self.assertTrue(isinstance(data, dict))
     self.assertEqual(data, dict())
Example #2
0
 def test_aimless_version_good_xml_file(self):
     s = aimlessReport(xml_file=self.test_files.TEST_AIMLESS_XML_FILE)
     version = s.get_aimlesss_version()
     self.assertEqual(version, "0.5.16")
Example #3
0
 def test_aimless_version_non_aimless_xml_file(self):
     s = aimlessReport(xml_file=self.test_files.TEST_NON_AIMLESS_XML_FILE)
     version = s.get_aimlesss_version()
     self.assertIsNone(version)
Example #4
0
 def test_aimless_xml_file(self):
     s = aimlessReport(
         xml_file=self.test_files.TEST_AIMLESS_XML_FILE).parse_xml()
     self.assertTrue(s)
Example #5
0
 def test_non_aimless_xml_file(self):
     s = aimlessReport(
         xml_file=self.test_files.TEST_NON_AIMLESS_XML_FILE).parse_xml()
     self.assertFalse(s)
Example #6
0
 def test_bad_xml_file(self):
     s = aimlessReport(
         xml_file=self.test_files.TEST_BAD_XML_FILE).parse_xml()
     self.assertFalse(s)
Example #7
0
 def test_xml_does_not_exists(self):
     s = aimlessReport(xml_file='does_not_exist.xml').parse_xml()
     self.assertFalse(s)
Example #8
0
 def test_xml_none_type(self):
     s = aimlessReport(xml_file=None).parse_xml()
     self.assertFalse(s)