Пример #1
0
 def test_underscore_run_on_failure(self):
     when(RunOnFailureKeywords).run_on_failure().thenReturn(True)
     sl = SeleniumLibrary()
     sl._run_on_failure()
     verify(RunOnFailureKeywords, times=1).run_on_failure()
 def test_deprecated_run_on_failure(self):
     when(SeleniumLibrary).failure_occurred().thenReturn(True)
     sl = SeleniumLibrary()
     sl._run_on_failure()
     verify(SeleniumLibrary, times=1).failure_occurred()
 def test_deprecated_run_on_failure(self):
     when(SeleniumLibrary).failure_occurred().thenReturn(True)
     sl = SeleniumLibrary()
     sl._run_on_failure()
     verify(SeleniumLibrary, times=1).failure_occurred()