def METHOD_NAME(self):
    code = '''\
    def func(x):
        for i in range(x):
            a = i + 1
        return a
    '''
    types = self._test(code)
    self.assertIn(('func', (1, 0)), types)
    variables = types.pop(('func', (1, 0)))
    self.assertFalse(types)
    self.assertEqual({'a': set(['int']), 'i': set(['int'])}, variables)