mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 11:16:24 +00:00
get rid of assert_
This commit is contained in:
parent
e4d556b49e
commit
b44980ca01
@ -883,9 +883,9 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, testutil.ReallyEqualMixi
|
||||
if imgs and imgs[0].attrs.get(u"src", u"") == u"img/connected-yes.png":
|
||||
found_status = True
|
||||
sib = div.find_next_siblings()[0]
|
||||
self.assert_(u"nickname" in sib.attrs[u"class"])
|
||||
self.assert_(u"other_nickname \u263B" in sib.contents)
|
||||
self.assert_(found_status, "no status-indicator found")
|
||||
self.assertIn(u"nickname", sib.attrs[u"class"])
|
||||
self.assertIn(u"other_nickname \u263B", sib.contents)
|
||||
self.assertTrue(found_status, "no status-indicator found")
|
||||
|
||||
if self.have_working_tzset():
|
||||
assert_soup_has_tag_with_attributes_and_content(
|
||||
@ -906,9 +906,9 @@ class Web(WebMixin, WebErrorMixin, testutil.StallMixin, testutil.ReallyEqualMixi
|
||||
if u"No introducers connected" in sib.contents:
|
||||
continue
|
||||
found_status = True
|
||||
self.assert_(u"nickname" in sib.attrs.get(u"class", []))
|
||||
self.assert_(u"disconnected_nickname \u263B" in sib.contents)
|
||||
self.assert_(found_status, "no status-indicator found")
|
||||
self.assertIn(u"nickname", sib.attrs.get(u"class", []))
|
||||
self.assertIn(u"disconnected_nickname \u263B", sib.contents)
|
||||
self.assertTrue(found_status, "no status-indicator found")
|
||||
|
||||
|
||||
assert_soup_has_tag_with_attributes_and_content(
|
||||
|
Loading…
Reference in New Issue
Block a user