diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_collection.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_collection.py b/tests/test_collection.py index 1400f57..99a5517 100644 --- a/tests/test_collection.py +++ b/tests/test_collection.py @@ -48,9 +48,10 @@ class testEntries(unittest.TestCase): entry_fname = os.path.join(self.basepath, new_entry.fname) with open(entry_fname) as fp: text = fp.read() - self.assertIn('quantity (integer): how many items are there', text) - self.assertIn('other (yaml):', text) - self.assertNotIn('position (string)', text) + self.assertIn('# quantity (integer): how many items are there', text) + self.assertIn('# other (yaml):', text) + self.assertNotIn('# position (string)', text) + self.assertNotIn('# # other (yaml)', text) written = ruamel.yaml.safe_load(text) self.assertIsInstance(written['quantity'], int) self.assertIsInstance(written['name'], str) |