def test_second(): assert second(xrange(5)) == 1 assert second([]) is None
def test_second(self): assert_equal(second(xrange(5)), 1) assert_equal(second([]), None)