示例#1
0
 def test_none_present(self):
     self.assertIsNone(
         find_first(
             ['one', 'two', 'three'],
             ['four']
         )
     )
示例#2
0
 def test_second_in_haystack(self):
     self.assertEqual(
         find_first(
             ['one', 'two', 'three'],
             ['two', 'four']
         ),
         'two',
     )
示例#3
0
 def test_none_present(self):
     self.assertIsNone(find_first(['one', 'two', 'three'], ['four']))
示例#4
0
 def test_second_in_haystack(self):
     self.assertEqual(
         find_first(['one', 'two', 'three'], ['two', 'four']),
         'two',
     )