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