Exemplo n.º 1
0
 def test_non_existing_wpt_manifest_checks(self):
     wrong_path = "/wrong/path.ini"
     errors = tidy.check_manifest_dirs(wrong_path, print_text=False)
     self.assertEqual("%s manifest file is required but was not found" % wrong_path, next(errors)[2])
     self.assertNoMoreErrors(errors)
     errors = tidy.check_manifest_dirs(os.path.join(base_path, 'manifest-include.ini'), print_text=False)
     self.assertTrue(next(errors)[2].endswith("never_going_to_exist"))
     self.assertNoMoreErrors(errors)
Exemplo n.º 2
0
 def test_non_existing_wpt_manifest_checks(self):
     wrong_path = "/wrong/path.ini"
     errors = tidy.check_manifest_dirs(wrong_path, print_text=False)
     self.assertEqual("%s manifest file is required but was not found" % wrong_path, errors.next()[2])
     self.assertNoMoreErrors(errors)
     errors = tidy.check_manifest_dirs(os.path.join(base_path, 'manifest-include.ini'), print_text=False)
     self.assertTrue(errors.next()[2].endswith("never_going_to_exist"))
     self.assertNoMoreErrors(errors)