'should access alerts using \'with\' statement'

def test_access_alerts_using_with(self):

    self.browser.visit((EXAMPLE_APP + 'alert'))
    self.browser.find_by_tag('h1').click()
    with self.browser.get_alert() as alert:
        self.assertEqual('This    is    an    alert    example.', alert.text)
        alert.accept()
