test/unittest_entity.py
branchstable
changeset 5634 e01cf2013bf1
parent 5631 e2e99cdf0899
child 5636 8138d9c86ac8
equal deleted inserted replaced
5632:1e7c662bd6f8 5634:e01cf2013bf1
   360             if tuple(int(i) for i in pygments.__version__.split('.')[:2]) >= (1, 3):
   360             if tuple(int(i) for i in pygments.__version__.split('.')[:2]) >= (1, 3):
   361                 self.assertEquals(e.printable_value('data'),
   361                 self.assertEquals(e.printable_value('data'),
   362                                   '''<div class="highlight"><pre><span class="k">lambda</span> <span class="n">x</span><span class="p">:</span> <span class="mi">1</span>
   362                                   '''<div class="highlight"><pre><span class="k">lambda</span> <span class="n">x</span><span class="p">:</span> <span class="mi">1</span>
   363 </pre></div>
   363 </pre></div>
   364 ''')
   364 ''')
   365             else
   365             else:
   366                 self.assertEquals(e.printable_value('data'),
   366                 self.assertEquals(e.printable_value('data'),
   367                                   '''<div class="highlight"><pre><span class="k">lambda</span> <span class="n">x</span><span class="p">:</span> <span class="mf">1</span>
   367                                   '''<div class="highlight"><pre><span class="k">lambda</span> <span class="n">x</span><span class="p">:</span> <span class="mf">1</span>
   368 </pre></div>
   368 </pre></div>
   369 ''')
   369 ''')
   370         else:
   370         else: