

def setUp(self):
    self._setUpUsersAndLogin()
    i._setUpNonInstructors()
    self.learner = Role.objects.get_or_create(name='learner')[0]
    self.test_host = Host.objects.create(domain='example.com', fullname='Test Host')
    self.test_tag = Tag.objects.create(name='Test Tag', details='For testing')
    for i in range(50):
        event_start = datetime.now()
        Event.objects.create(start=event_start, slug='test_event_{0}'.format(i), host=self.test_host, admin_fee=0)

dataset/ETHPy150Open swcarpentry/amy/workshops/test/test_event.py TestEventViews.setUp/VarMisuse@16/23 `self`->`i`