def test_long_genexp(self):
        #for a long genexp, we compute the Hardy-Ramanujan number
        #http://en.wikipedia.org/wiki/1729_(number)
        res = ((x1**3+x2**3,(x1,x2),(y1,y2))
              for x1 in range(20) for x2 in range(20) if x1 < x2 # x-Paare
              for y1 in range(20) for y2 in range(20) if y1 < y2 # y-Paare
              if x1**3+x2**3 == y1**3+y2**3 # gleiche Summe
              if (x1,x2) < (y1,y2)
              )
        self.assertEquals(1729, res.next()[0])
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_genexps_jy.py/GeneratorExpressionsTestCase.test_long_genexp/original