Mercurial > p > roundup > code
comparison test/test_security.py @ 6638:e1588ae185dc issue2550923_computed_property
merge from default branch. Fix travis.ci so CI builds don't error out
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 21 Apr 2022 16:54:17 -0400 |
| parents | 120b0bb05b6e |
| children | cfdcaf8b5936 |
comparison
equal
deleted
inserted
replaced
| 6508:85db90cc1705 | 6638:e1588ae185dc |
|---|---|
| 409 self.assertEqual(has(uimu, 'issue', 'messages.author'), 1) | 409 self.assertEqual(has(uimu, 'issue', 'messages.author'), 1) |
| 410 self.assertEqual(has(uimu, 'issue', 'messages.author.username'), 1) | 410 self.assertEqual(has(uimu, 'issue', 'messages.author.username'), 1) |
| 411 self.assertEqual(has(uimu, 'issue', 'messages.recipients'), 1) | 411 self.assertEqual(has(uimu, 'issue', 'messages.recipients'), 1) |
| 412 self.assertEqual(has(uimu, 'issue', 'messages.recipients.username'), 1) | 412 self.assertEqual(has(uimu, 'issue', 'messages.recipients.username'), 1) |
| 413 | 413 |
| 414 # roundup.password has its own built-in test, call it. | 414 # roundup.password has its own built-in tests, call them. |
| 415 def test_password(self): | 415 def test_password(self): |
| 416 roundup.password.test() | 416 roundup.password.test() |
| 417 | 417 |
| 418 # pretend import of crypt failed | |
| 419 orig_crypt = roundup.password.crypt | |
| 420 roundup.password.crypt = None | |
| 421 with self.assertRaises(roundup.password.PasswordValueError) as ctx: | |
| 422 roundup.password.test_missing_crypt() | |
| 423 roundup.password.crypt = orig_crypt | |
| 424 | |
| 418 # vim: set filetype=python sts=4 sw=4 et si : | 425 # vim: set filetype=python sts=4 sw=4 et si : |
