def test_by_known_unicode_string(self): self.assertEqual(errors.NoSuchElementException, errors.lookup(u"no such element"))
def test_by_unknown_number(self): self.assertEqual(errors.MarionetteException, errors.lookup(123456))
def test_by_unknown_string(self): self.assertEqual(errors.MarionetteException, errors.lookup("barbera"))
def test_by_known_number(self): self.assertEqual(errors.NoSuchElementException, errors.lookup(7))