Get the frontend unittest to run against SQLite.  This required scattered changes:
* change frontend_unittest to tell django to use an in-memory SQLite database. ideally this would've been the only change necessary, but it wasn't.
* change long to ints in the doctests, as that's what pysqlite2 returns
* change several imports to use autotest_lib; that's the way everything should be, and the other way breaks things when trying to run stuff without using manage.py
* make readonly_connection better support testing by changing its connection attribute into a method, and adding the capability to disable the module completely during testing
* get rid of use of GROUP_CONCAT in models.py; SQLite doesn't support it (not in our old version anyhow), and it;s really not necessary anyway



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2244 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/afe/management.py b/frontend/afe/management.py
index 193947d..ed71a9b 100644
--- a/frontend/afe/management.py
+++ b/frontend/afe/management.py
@@ -2,8 +2,9 @@
 
 from django.dispatch import dispatcher
 from django.db.models import signals
-import frontend.afe.models
 from django.contrib import auth
+import common
+from autotest_lib.frontend.afe import models
 
 BASIC_ADMIN = 'Basic admin'
 
@@ -35,5 +36,5 @@
         print 'Group "%s" already exists' % BASIC_ADMIN
 
 
-dispatcher.connect(create_admin_group, sender=frontend.afe.models,
+dispatcher.connect(create_admin_group, sender=models,
                    signal=signals.post_syncdb)