diff options
Diffstat (limited to 'tests/test_collection.py')
-rw-r--r-- | tests/test_collection.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_collection.py b/tests/test_collection.py index f7ee31f..b25dfa1 100644 --- a/tests/test_collection.py +++ b/tests/test_collection.py @@ -339,6 +339,13 @@ class testComplexCollection(unittest.TestCase): with open(fname, 'r') as fp: self.assertEqual(e.yaml_data, fp.read()) + def test_data_is_stored_as_written_on_file_with_apices(self): + e = self.collection.entry_from_eid('8e9fa1ed3c1b4a30a6be7a98eda0cfa7') + fname = 'tests/data/complex/items/' + \ + '8e9fa1ed3c1b4a30a6be7a98eda0cfa7.yaml' + with open(fname, 'r') as fp: + self.assertEqual(e.yaml_data, fp.read()) + def test_sorted_search(self): # search in ascending order self.collection.start_search('Amount', sort_by=['amount']) |