def tearDown_test_db():
 if os.path.exists(os.path.join(TESTDIR, TESTDBNAME)):
  os.remove(os.path.join(TESTDIR, TESTDBNAME))
 if os.path.exists(os.path.join(TESTDIR, TESTCACHEDBNAME)):
  os.remove(os.path.join(TESTDIR, TESTCACHEDBNAME))

def tearDown_test_db ( ) : if os . path . exists ( os . path . join ( TESTDIR , TESTDBNAME ) ) : os . remove ( os . path . join ( TESTDIR , TESTDBNAME ) ) if os . path . exists ( os . path . join ( TESTDIR , TESTCACHEDBNAME ) ) : os . remove ( os . path . join ( TESTDIR , TESTCACHEDBNAME ) )
deletes the test db although this seams not to work on my system it leaves me with an zero kb file .