Fix unittests
This commit is contained in:
parent
851db96fa8
commit
1b83f01581
@ -8,5 +8,5 @@
|
||||
number = {4},
|
||||
author = {Yan-Hua Hou and Lev P. Pitaevskii and Sandro Stringari},
|
||||
title = {First and second sound in a highly elongated Fermi gas at unitarity},
|
||||
journal = {Physical Review A}
|
||||
journal = {Phys. Rev. A}
|
||||
}
|
@ -123,7 +123,7 @@ Lattice},
|
||||
|
||||
def test_getBibtex_id(self):
|
||||
bibtexAppend(self.bibtex_article)
|
||||
got = getBibtex(self.bibtex_article['ID'], file_id='ID')
|
||||
got = getBibtex(self.bibtex_article['ID'], file_id='id')
|
||||
self.assertEqual(got, self.bibtex_article)
|
||||
|
||||
def test_getBibtex_file(self):
|
||||
|
@ -19,7 +19,7 @@ class TestTools(unittest.TestCase):
|
||||
self.assertEqual(slugify(u"à&é_truc.pdf"), "ae_trucpdf")
|
||||
|
||||
def test_parsed2Bibtex(self):
|
||||
parsed = {'type': 'article', 'id': 'test', 'field1': 'test1',
|
||||
parsed = {'ENTRYTYPE': 'article', 'ID': 'test', 'field1': 'test1',
|
||||
'field2': 'test2'}
|
||||
expected = ('@article{test,\n\tfield1={test1},\n' +
|
||||
'\tfield2={test2},\n}\n\n')
|
||||
|
Loading…
Reference in New Issue
Block a user