def METHOD_NAME(self):
    def coroutine():
        try: pass
        except: pass
        just_numbers = list(range(1,1000))
        def inner_method():
            return just_numbers
        yield None
        yield None
    from System import GC
    def get_memory():
        for _ in range(4):
            GC.Collect()
            GC.WaitForPendingFinalizers()
        return GC.GetTotalMemory(True)/1e6
    before = get_memory()
    for j in range(10000):
        crt = coroutine()
        next(crt)
    after = get_memory()
    self.assertTrue(after-before < 10)