'createsuperuser command should operate on specified DB'

def test_createsuperuser_command_with_database_option(self):

    new_io = StringIO()
    call_command('createsuperuser', interactive=False, username='joe', email='joe@somewhere.org', database='other', stdout=new_io)
    command_output = new_io.getvalue().strip()
    self.assertEqual(command_output, 'Superuser    created    successfully.')
    u = models.User.objects.using('other').get(username='joe')
    self.assertEqual(u.email, 'joe@somewhere.org')
    new_io.close()
