copy the tests back to trunk

git-svn-id: https://svn.tribler.org/dispersy/trunk@31087 001aeff7-3401-0410-a489-f7902fc005dd
add the missing stuff to be able to run the tests

git-svn-id: https://svn.tribler.org/dispersy/trunk@31088 001aeff7-3401-0410-a489-f7902fc005dd
Fix the DebugOnlyMember so the cache doesn't get desynchronized when running tests.

git-svn-id: https://svn.tribler.org/dispersy/trunk@31094 001aeff7-3401-0410-a489-f7902fc005dd
No exception_traceback in trunk of Dispersy.

git-svn-id: https://svn.tribler.org/dispersy/trunk@31098 001aeff7-3401-0410-a489-f7902fc005dd
More logging for response_func assert

git-svn-id: https://svn.tribler.org/dispersy/trunk@31099 001aeff7-3401-0410-a489-f7902fc005dd
Add a script to run the tests easily and make test_all.py a bit cleaner.

git-svn-id: https://svn.tribler.org/dispersy/trunk@31100 001aeff7-3401-0410-a489-f7902fc005dd
Refine the unit test script runner and test_all.py a bit more. It should work when called from anywhere now

git-svn-id: https://svn.tribler.org/dispersy/trunk@31103 001aeff7-3401-0410-a489-f7902fc005dd
debug output

git-svn-id: https://svn.tribler.org/dispersy/trunk@31465 001aeff7-3401-0410-a489-f7902fc005dd
fixed: batched message ordering priority (with 2+ batches of the same message would schedule one batch out of order)

git-svn-id: https://svn.tribler.org/dispersy/trunk@31466 001aeff7-3401-0410-a489-f7902fc005dd
we should not catch all exceptions.  this one blocked an assert causing us to miss a failed unittest

git-svn-id: https://svn.tribler.org/dispersy/trunk@31479 001aeff7-3401-0410-a489-f7902fc005dd
fixes a unittest: return value should be a single boolean

git-svn-id: https://svn.tribler.org/dispersy/trunk@31480 001aeff7-3401-0410-a489-f7902fc005dd
bootstrap server test will now assert on too few or too slow responses from the servers

git-svn-id: https://svn.tribler.org/dispersy/trunk@31482 001aeff7-3401-0410-a489-f7902fc005dd
new cleanup methods to be called to cleanup all caching done during a Dispersy run

git-svn-id: https://svn.tribler.org/dispersy/trunk@31504 001aeff7-3401-0410-a489-f7902fc005dd
Merged mainbranch to trunk


git-svn-id: https://svn.tribler.org/dispersy/trunk@31507 001aeff7-3401-0410-a489-f7902fc005dd
Implemented dispersy.stop method which is calling cleanup methods.

git-svn-id: https://svn.tribler.org/dispersy/trunk@31509 001aeff7-3401-0410-a489-f7902fc005dd
Check if cache is actually existing in member class before trying to clear it....

git-svn-id: https://svn.tribler.org/dispersy/trunk@31510 001aeff7-3401-0410-a489-f7902fc005dd
Cannot unlock lock owned by other threads...

git-svn-id: https://svn.tribler.org/dispersy/trunk@31511 001aeff7-3401-0410-a489-f7902fc005dd
git-svn-id: https://svn.tribler.org/dispersy/trunk@31512 001aeff7-3401-0410-a489-f7902fc005dd
Should not only clear MemberBase, but also its subclasses etc.
Should not only clean Singleton objects, but also ParameterizedSingletons

git-svn-id: https://svn.tribler.org/dispersy/trunk@31513 001aeff7-3401-0410-a489-f7902fc005dd
git-svn-id: https://svn.tribler.org/dispersy/trunk@31514 001aeff7-3401-0410-a489-f7902fc005dd