Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Silbe <sascha@silbe.org>2009-11-26 18:03:07 (GMT)
committer Sascha Silbe <sascha@silbe.org>2009-11-26 18:03:07 (GMT)
commita756089ef5f7d1b3e79f184a75161f2dfd4aa8d1 (patch)
tree4b7247f270fa12704952d767d7b947a623649e37
parent18953df63e0b01a95987398e5138ccf761abfa6d (diff)
test_massops.py:test_update_verify(): prevent file leak on failure, update description
-rw-r--r--tests/test_massops.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_massops.py b/tests/test_massops.py
index 576d6b1..6739e74 100644
--- a/tests/test_massops.py
+++ b/tests/test_massops.py
@@ -143,13 +143,13 @@ class MassOpsTestCase(unittest.TestCase):
content_file.name, False)
def test_update_verify(self):
- """Verify test_update() has changed the content of all entries."""
+ """Verify test_update() has changed content and metadata of all entries."""
for entry in self._datastore.find({}, [], byte_arrays=True)[0]:
filename = self._datastore.get_filename(entry['uid'],
byte_arrays=True)
self._filter_properties(entry)
- self.assertEquals(entry, self._update_properties)
try:
+ self.assertEquals(entry, self._update_properties)
self.assertEquals(file(filename).read(), self._update_content)
finally:
os.remove(filename)