'A CommandError should be thrown by handle() if the user enters in
mismatched passwords three times.'

def test_that_max_tries_exits_1(self):

    command = changepassword.Command()
    command._get_pass = (lambda *args: (args or u'foo'))
    with self.assertRaises(CommandError):
        command.execute(u'joe', stdout=self.stdout, stderr=self.stderr)
