

def test_no_exception_when_empty_url(self):
    'Regression test: ensure no exceptions are raised when accessing\n        `event_import` view without `url` GET param.'
    url = reverse('event_import')
    rv = self.client.get(url)
    self.assertLess(rv.status_code, 500)

dataset/ETHPy150Open swcarpentry/amy/workshops/test/test_event.py TestEventImport.test_no_exception_when_empty_url/original