I want a test to fail when the if
condition below becomes false
.
last_url = self.browser.current_url
if 'https://***/news/' in last_url:
print("test passed")
else:
#Test should fail if it reaches here
print("test failed")
How can i achieve that?