'Creates a non-staff test user.
Returns the non-staff test user and its password.'

def create_non_staff_user(self):

    uname = 'teststudent'
    password = 'foo'
    nonstaff_user = User.objects.create_user(uname, 'test+student@edx.org', password)
    nonstaff_user.is_active = True
    nonstaff_user.is_staff = False
    nonstaff_user.save()
    return (nonstaff_user, password)
