]> err.no Git - dak/commitdiff
Clean up after DB test.
authorTorsten Werner <twerner@debian.org>
Thu, 13 Jan 2011 19:01:09 +0000 (20:01 +0100)
committerTorsten Werner <twerner@debian.org>
Thu, 13 Jan 2011 19:01:09 +0000 (20:01 +0100)
Signed-off-by: Torsten Werner <twerner@debian.org>
tests/dbtest_fingerprint.py

index c0d23525479cf698968174a56b69c7f142767871..efd994d3267dec5f1b8f9b9ad9290ccc016d8742 100755 (executable)
@@ -16,5 +16,9 @@ class FingerprintTestCase(DBDakTestCase):
         self.assertEqual(1, query.count())
         self.assertEqual('deadbeefdeadbeef', query.one().fingerprint)
 
+    def tearDown(self):
+        self.session.query(Fingerprint).delete()
+        super(FingerprintTestCase, self).tearDown()
+
 if __name__ == '__main__':
     unittest.main()