Beispiel #1
0
 def test_multiple_string_write(self):
     bib_database = BibDatabase()
     bib_database.preambles = [' a ', 'b']
     result = bibdeskparser.dumps(bib_database)
     expected = '@preamble{" a "}\n\n@preamble{"b"}\n\n'
     self.assertEqual(result, expected)
Beispiel #2
0
 def test_single_preamble_write(self):
     bib_database = BibDatabase()
     bib_database.preambles = [' a ']
     result = bibdeskparser.dumps(bib_database)
     expected = '@preamble{" a "}\n\n'
     self.assertEqual(result, expected)