'A Custom superuser won\'t be created when a required field isn\'t provided'

@override_settings(AUTH_USER_MODEL=u'auth.CustomUser')
def test_swappable_user_missing_required_field(self):

    new_io = StringIO()
    with self.assertRaises(CommandError):
        call_command(u'createsuperuser', interactive=False, username=u'joe@somewhere.org', stdout=new_io, stderr=new_io, skip_validation=True)
    self.assertEqual(CustomUser._default_manager.count(), 0)
