diff --git a/OOMAnalyser.py b/OOMAnalyser.py index 7c9f078..ae7c743 100644 --- a/OOMAnalyser.py +++ b/OOMAnalyser.py @@ -36,6 +36,9 @@ class document(): def createElementNS(self, *arg, **kwargs): return element() + def createElement(self, *args, **kwargs): + return element() + class element(): @@ -45,6 +48,9 @@ class element(): def removeChild(self, *args, **kwargs): return + + def appendChild(self, *args, **kwargs): + return # __pragma__ ('noskip') diff --git a/test.py b/test.py index 920ccab..144182b 100755 --- a/test.py +++ b/test.py @@ -108,7 +108,7 @@ class TestInBrowser(TestBase): except NoSuchElementException: pass else: - self.fail('Unexpected warning message: %s' % warning.text) + self.fail('Unexpected warning message: "%s"' % warning.text) def assert_on_error(self): notify_box = self.driver.find_element_by_id('notify_box') @@ -117,13 +117,13 @@ class TestInBrowser(TestBase): except NoSuchElementException: pass else: - self.fail('Unexpected error message: %s' % error.text) + self.fail('Unexpected error message: "%s"' % error.text) for event in self.driver.get_log('browser'): # ignore favicon.ico errors if 'favicon.ico' in event['message']: continue - self.fail('Error on browser console reported: %s' % event) + self.fail('Error on browser console reported: "%s"' % event) def assert_on_warn_error(self): self.assert_on_warn() @@ -260,7 +260,7 @@ Killed process 6576 (java) total-vm:33914892kB, anon-rss:20629004kB, file-rss:0k h3_summary = self.driver.find_element_by_xpath('//h3[text()="Summary"]') self.assertTrue(h3_summary.is_displayed(), "Analysis details incl.

Summary

should be displayed") - def test_removal_of_leading_but_useless_columns(self): + def test_008_removal_of_leading_but_useless_columns(self): """Test removal of leading but useless columns""" self.analyse_oom(OOMAnalyser.OOMDisplay.example) self.check_results()