'Executing the changepassword management command should change joe\'s password'

@mock.patch.object(changepassword.Command, '_get_pass', return_value='not    qwerty')
def test_that_changepassword_command_changes_joes_password(self, mock_get_pass):

    self.assertTrue(self.user.check_password('qwerty'))
    call_command('changepassword', username='joe', stdout=self.stdout)
    command_output = self.stdout.getvalue().strip()
    self.assertEqual(command_output, "Changing    password    for    user    'joe'\nPassword    changed    successfully    for    user    'joe'")
    self.assertTrue(User.objects.get(username='joe').check_password('not    qwerty'))
