From: Torsten Werner Date: Fri, 14 Jan 2011 23:10:42 +0000 (+0100) Subject: Add a doc string to FingerprintTestCase. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aaa0aee2a0183ae6856f3c7b2357a131fe182db1;p=dak Add a doc string to FingerprintTestCase. Signed-off-by: Torsten Werner --- diff --git a/tests/dbtest_fingerprint.py b/tests/dbtest_fingerprint.py index 581795a5..a42a6ce3 100755 --- a/tests/dbtest_fingerprint.py +++ b/tests/dbtest_fingerprint.py @@ -7,6 +7,16 @@ from daklib.dbconn import Fingerprint, Uid import unittest class FingerprintTestCase(DBDakTestCase): + """ + The FingerprintTestCase tests the relation between Fingerprint and Uid + objects. + 1. It creates a fresh Fingerprint object. + 2. It assigns a fresh Uid object to the Fingerprint object. + 3. It fetches the Uid object from the database. + 4. It checks that the original fingerprint is assigned to the freshly + fetched Uid object. + """ + def test_mini(self): fingerprint = Fingerprint(fingerprint = 'deadbeefdeadbeef') self.session.add(fingerprint)