@@ -0,0 +1,1267 @@
+from django.utils import unittest%0Afrom django.test import TestCase%0Afrom django.test.client import Client%0Afrom django.contrib.auth.models import User%0Afrom django.contrib.auth import authenticate%0Aimport inspect%0A%0Aclass NewUserTestCase(TestCase):%0A    def test_create_user(self):%0A        client = Client();%0A        res = client.post('/account/',%0A                          %7B 'ajax': %22create_account_submit%22,%0A                            'invitation_key': %22%22,%0A                            'email': %22create@testing.solarpermit.org%22,%0A                            'title': %22Engineer%22,%0A                            'firstname': %22abc%22,%0A                            'lastname': %22def%22,%0A                            'username': %22abcdef%22,%0A                            'display_as': %22realname%22,%0A                            'password': %22qwertyuiop%22,%0A                            'verify_password': %22qwertyuiop%22 %7D)%0A        self.assertEqual(res.status_code, 200)%0A        new_user = User.objects.all()%5B0%5D%0A        self.assertFalse(new_user.is_superuser)%0A        self.assertFalse(new_user.is_staff)%0A        auth_user = authenticate(username = 'abcdef',%0A                                 password = 'qwertyuiop')%0A        self.assertIsNotNone(auth_user);%0A        self.assertEqual(new_user, auth_user)%0A

test the creation of new users