projects
/
quix0rs-apt-p2p.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Updated and added a lot of unittests.
[quix0rs-apt-p2p.git]
/
apt_p2p_Khashmir
/
db.py
diff --git
a/apt_p2p_Khashmir/db.py
b/apt_p2p_Khashmir/db.py
index 8709970aee2890bb1de874947702b59370f2f3d5..a7962566cc5a07eb99c0744b65eb81389f8b45bc 100644
(file)
--- a/
apt_p2p_Khashmir/db.py
+++ b/
apt_p2p_Khashmir/db.py
@@
-182,6
+182,7
@@
class TestDB(unittest.TestCase):
def test_Value(self):
self.store.storeValue(self.key, self.key)
+ self.failUnlessEqual(self.store.countValues(self.key), 1)
val = self.store.retrieveValues(self.key)
self.failUnlessEqual(len(val), 1)
self.failUnlessEqual(val[0], self.key)