Tests are failing

The test was failing with ImportError without this change (python 2.6):

    ** Basic **
    /Users/kmike/envs/planor/src/django/django/db/__init__.py:19: DeprecationWarning: settings.DATABASE_* is deprecated; use settings.DATABASES instead.
      DeprecationWarning
    /Users/kmike/envs/planor/src/django/django/db/__init__.py:60: DeprecationWarning: Short names for ENGINE in database configurations are deprecated. Prepend default.ENGINE with 'django.db.backends.'
      DeprecationWarning
    Traceback (most recent call last):
      File "/Users/kmike/envs/planor/bin/django-admin.py", line 7, in <module>
        execfile(__file__)
      File "/Users/kmike/envs/planor/src/django/django/bin/django-admin.py", line 5, in <module>
        management.execute_from_command_line()
      File "/Users/kmike/envs/planor/src/django/django/core/management/__init__.py", line 429, in execute_from_command_line
        utility.execute()
      File "/Users/kmike/envs/planor/src/django/django/core/management/__init__.py", line 379, in execute
        self.fetch_command(subcommand).run_from_argv(self.argv)
      File "/Users/kmike/envs/planor/src/django/django/core/management/base.py", line 191, in run_from_argv
        self.execute(*args, **options.__dict__)
      File "/Users/kmike/envs/planor/src/django/django/core/management/base.py", line 220, in execute
        output = self.handle(*args, **options)
      File "/Users/kmike/envs/planor/src/django/django/core/management/commands/test.py", line 37, in handle
        failures = test_runner.run_tests(test_labels)
      File "/Users/kmike/envs/planor/src/django/django/test/simple.py", line 358, in run_tests
        suite = self.build_suite(test_labels, extra_tests)
      File "/Users/kmike/envs/planor/src/django/django/test/simple.py", line 248, in build_suite
        suite.addTest(build_suite(app))
      File "/Users/kmike/envs/planor/src/django/django/test/simple.py", line 77, in build_suite
        test_module = get_tests(app_module)
      File "/Users/kmike/envs/planor/src/django/django/test/simple.py", line 35, in get_tests
        test_module = __import__('.'.join(app_path + [TEST_MODULE]), {}, {}, TEST_MODULE)
      File "/Users/kmike/svn/django-tastypie/tests/basic/tests/__init__.py", line 1, in <module>
        from basic.tests.http import *
      File "/Users/kmike/svn/django-tastypie/tests/basic/tests/http.py", line 1, in <module>
        from tests.testcases import TestServerTestCase
    ImportError: No module named testcases

There is one more failing test:

    ======================================================================
    ERROR: test_gets_without_trailing_slash (slashless.tests.ViewsWithoutSlashesTestCase)
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "/Users/kmike/svn/django-tastypie/tests/slashless/tests.py", line 49, in test_gets_without_trailing_slash
        self.assertEqual(json.loads(resp.content)["error_message"], "Invalid resource lookup data provided (mismatched type).")
      File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/__init__.py", line 307, in loads
        return _default_decoder.decode(s)
      File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/decoder.py", line 319, in decode
        obj, end = self.raw_decode(s, idx=_w(s, 0).end())
      File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/json/decoder.py", line 338, in raw_decode
        raise ValueError("No JSON object could be decoded")
    ValueError: No JSON object could be decoded

But I don't have a glue about it. 'resp.content' contains standard django debug 404 page (with html & css), not the json, so it can't be decoded.

The failing code: https://github.com/toastdriven/django-tastypie/blob/master/tests/slashless/tests.py#L49