def check_no_alert():
 try:
  assert_is_none(world.browser.get_alert())
 except NoAlertPresentException:
  pass

def check_no_alert ( ) : try : assert_is_none ( world . browser . get_alert ( ) ) except NoAlertPresentException : pass
make sure the alert has gone away .