'You can limit the number of items returned by find_all.'

def test_find_all_limit(self):

    soup = self.soup('<a>1</a><a>2</a><a>3</a><a>4</a><a>5</a>')
    self.assertSelects(soup.find_all('a', limit=3), ['1', '2', '3'])
    self.assertSelects(soup.find_all('a', limit=1), ['1'])
    self.assertSelects(soup.find_all('a', limit=10), ['1', '2', '3', '4', '5'])
    self.assertSelects(soup.find_all('a', limit=0), ['1', '2', '3', '4', '5'])
