def test_current_froms1(self): self.load('several-redirects') observed = app._current_froms(self.root, 'h92hsuostuhaou') expected = { 'lorena.co.nz', 'www.thomaslevine.org', 'urchin.sh', } n.assert_set_equal(observed, expected)
def test_current_froms2(self): self.load('no-redirects') observed = app._current_froms(self.root, 'foobar') expected = set() n.assert_set_equal(observed, expected)