mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1499367 - Improve assertion for profileNameToRemove in test_refresh_firefox.py. r=Gijs
assertIn(el, list) should be favored over assertTrue(el in list), which gives clear details about what is different. Differential Revision: https://phabricator.services.mozilla.com/D8857 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
d407fdf975
commit
bbf8e689c3
@ -577,8 +577,7 @@ class TestFirefoxRefresh(MarionetteTestCase):
|
||||
"Reset profile path should be present")
|
||||
self.assertTrue(os.path.isdir(self.desktop_backup_path),
|
||||
"Backup profile path should be present")
|
||||
self.assertTrue(self.profileNameToRemove in self.reset_profile_path,
|
||||
"Reset profile path should contain profile name to remove")
|
||||
self.assertIn(self.profileNameToRemove, self.reset_profile_path)
|
||||
|
||||
def testReset(self):
|
||||
self.checkProfile()
|
||||
|
Loading…
Reference in New Issue
Block a user