#!/usr/bin/env python
import sys
import unittest

from huey import tests


def runtests(*test_args):
    suite = unittest.TestLoader().loadTestsFromModule(tests)
    result = unittest.TextTestRunner(verbosity=1).run(suite)
    if result.failures:
        sys.exit(1)
    elif result.errors:
        sys.exit(2)
    sys.exit(0)


if __name__ == '__main__':
    runtests(*sys.argv[1:])

@@ -14,16 +14,27 @@
 v python
+%0A%0Aimport os
 %0Aimport 
@@ -227,16 +227,79 @@
 (suite)%0A
+    if os.path.exists('huey.db'):%0A        os.unlink('huey.db')%0A
     if r

Clean up.