Commits

psviderski committed 8370552

Add test for item.modify method (check None values).

Comments (0)

Files changed (1)

MoinMoin/items/_tests/test_Item.py

         update_meta = {
             'another_test_key': 'updated_test_value',
             'new_test_key': 'new_test_value',
+            'none_test_key': None,
         }
         item.modify(another_meta, another_data, **update_meta)
         item = Item.create(name)
         assert item.meta['test_key'] == another_meta['test_key']
         assert item.meta['another_test_key'] == update_meta['another_test_key']
         assert item.meta['new_test_key'] == update_meta['new_test_key']
+        assert 'none_test_key' not in item.meta
 
 
 coverage_modules = ['MoinMoin.items']