comparison test/test_cgi.py @ 4684:8453c0d4acbe

windows: Fix another failing test due to missing 'crypt'
author anatoly techtonik <techtonik@gmail.com>
date Wed, 28 Nov 2012 03:23:39 +0300
parents 2f66d44616ad
children 61e922a93112
comparison
equal deleted inserted replaced
4683:2f66d44616ad 4684:8453c0d4acbe
435 form = dict(__login_name='Chef', __login_password='foo') 435 form = dict(__login_name='Chef', __login_password='foo')
436 cl = self._make_client(form) 436 cl = self._make_client(form)
437 # assume that the "best" algorithm is the first one and doesn't 437 # assume that the "best" algorithm is the first one and doesn't
438 # need migration, all others should be migrated. 438 # need migration, all others should be migrated.
439 for scheme in password.Password.deprecated_schemes: 439 for scheme in password.Password.deprecated_schemes:
440 if scheme == 'crypt' and os.name == 'nt':
441 continue # crypt is not available on Windows
440 pw1 = password.Password('foo', scheme=scheme) 442 pw1 = password.Password('foo', scheme=scheme)
441 self.assertEqual(pw1.needs_migration(), True) 443 self.assertEqual(pw1.needs_migration(), True)
442 self.db.user.set(chef, password=pw1) 444 self.db.user.set(chef, password=pw1)
443 self.db.commit() 445 self.db.commit()
444 actions.LoginAction(cl).handle() 446 actions.LoginAction(cl).handle()

Roundup Issue Tracker: http://roundup-tracker.org/