Mercurial > moin-2.0-moinboot
changeset 2143:8370552b2450
Add test for item.modify method (check None values).
| author | Pavel Sviderski <pavel@psviderski.name> |
|---|---|
| date | Wed, 10 Jul 2013 23:18:03 +0400 |
| parents | 4f9b58ec2879 |
| children | 9c6013f454da |
| files | MoinMoin/items/_tests/test_Item.py |
| diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/items/_tests/test_Item.py Wed Jul 10 22:51:38 2013 +0400 +++ b/MoinMoin/items/_tests/test_Item.py Wed Jul 10 23:18:03 2013 +0400 @@ -362,6 +362,7 @@ 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) @@ -369,6 +370,7 @@ 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']
