예제 #1
0
 def test_skip_to_matching_class_not_found(self):
     it = _ri([c1, c2, c3, c4])
     self.assertEquals(
         apilint._skip_to_matching_class(
             it, cls("android.content", "ContentProvider")), None)
     self.assertEqual(it.next(), c4)
예제 #2
0
 def test_skip_to_matching_class_found(self):
     it = _ri([c1, c2, c3, c4])
     self.assertEquals(apilint._skip_to_matching_class(it, c3), c3)
     self.assertEqual(it.next(), c4)