Esempio n. 1
0
 def test_first(self):
     """first should always return first item"""
     vals = [3, 4, 2]
     self.assertEqual(first(vals), 3)
     vals.reverse()
     self.assertEqual(first(vals), 2)
Esempio n. 2
0
 def test_first(self):
     """first should always return first item"""
     vals = [3, 4, 2]
     self.assertEqual(first(vals), 3)
     vals.reverse()
     self.assertEqual(first(vals), 2)