Fix color in test_oneliner

This commit is contained in:
Fabien Benureau 2015-12-20 18:43:22 +01:00
parent 48e7658b8c
commit 0ab8310089

View File

@ -20,14 +20,14 @@ class TestPretty(unittest.TestCase):
decoder = endecoder.EnDecoder()
bibdata = decoder.decode_bibdata(bibtex_raw0)
line = u'Page, Lawrence et al. "The PageRank Citation Ranking: Bringing Order to the Web." (1999)'
self.assertEqual(pretty.bib_oneliner(bibdata['Page99']), line)
self.assertEqual(color.undye(pretty.bib_oneliner(bibdata['Page99'])), line)
def test_oneliner_no_year(self):
decoder = endecoder.EnDecoder()
bibdata = decoder.decode_bibdata(bibtex_raw0)
bibdata['Page99'].pop('year')
line = u'Page, Lawrence et al. "The PageRank Citation Ranking: Bringing Order to the Web."'
self.assertEqual(pretty.bib_oneliner(bibdata['Page99']), line)
self.assertEqual(color.undye(pretty.bib_oneliner(bibdata['Page99'])), line)
if __name__ == '__main__':
unittest.main()