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:
Henrik Skupin 2018-10-16 14:40:46 +00:00
parent d407fdf975
commit bbf8e689c3

View File

@ -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()