Example #1
0
 def test_by_known_unicode_string(self):
     self.assertEqual(errors.NoSuchElementException, errors.lookup(u"no such element"))
Example #2
0
 def test_by_unknown_number(self):
     self.assertEqual(errors.MarionetteException, errors.lookup(123456))
Example #3
0
 def test_by_unknown_string(self):
     self.assertEqual(errors.MarionetteException, errors.lookup("barbera"))
Example #4
0
 def test_by_known_number(self):
     self.assertEqual(errors.NoSuchElementException, errors.lookup(7))
Example #5
0
 def test_by_known_unicode_string(self):
     self.assertEqual(errors.NoSuchElementException,
         errors.lookup(u"no such element"))
Example #6
0
 def test_by_unknown_string(self):
     self.assertEqual(errors.MarionetteException, errors.lookup("barbera"))
Example #7
0
 def test_by_unknown_number(self):
     self.assertEqual(errors.MarionetteException, errors.lookup(123456))
Example #8
0
 def test_by_known_number(self):
     self.assertEqual(errors.NoSuchElementException, errors.lookup(7))