@@ -0,0 +1,1161 @@
+%22%22%22Test the Entries class that contains results.%22%22%22%0A%0Aimport bibpy%0Aimport pytest%0A%0A%0A@pytest.fixture%0Adef test_entries():%0A    return bibpy.read_file('tests/data/all_bibpy_entry_types.bib',%0A                           'relaxed')%0A%0A%0Adef test_entries_properties(test_entries):%0A    comment_entry = bibpy.entry.Comment('Anything is possible with comments!')%0A    entry = bibpy.entry.Entry('unpublished', 'unpubkey',%0A                              **dict(author='Somebody McPerson',%0A                                     title='How To Parse BibTex',%0A                                     year='2011'))%0A%0A    preamble_entry = bibpy.entry.Preamble('%5C%5Ctextbf%7B%5C%5Clatex%7D')%0A    string_entry = bibpy.entry.String('variable', 'value')%0A    comment = 'This is just a comment'%0A%0A    assert test_entries.comment_entries%5B0%5D == comment_entry%0A    assert test_entries.comments%5B0%5D == comment%0A    assert test_entries.entries%5B0%5D == entry%0A    assert test_entries.preambles%5B0%5D == preamble_entry%0A    assert test_entries.strings%5B0%5D == string_entry%0A%0A    assert len(test_entries.all) == 4%0A    assert test_entries.all == %5Bentry, string_entry, preamble_entry,%0A                                comment_entry%5D%0A

Test the Entries class