'Ensure that the "Add another XXX" link correctly adds items to the
stacked formset.'

def test_add_stackeds(self):

    self.admin_login(username=u'super', password=u'secret')
    self.selenium.get((u'%s%s' % (self.live_server_url, u'/admin/admin_inlines/holder4/add/')))
    inline_id = u'#inner4stacked_set-group'
    rows_length = (lambda : len(self.selenium.find_elements_by_css_selector((u'%s    .dynamic-inner4stacked_set' % inline_id))))
    self.assertEqual(rows_length(), 3)
    add_button = self.selenium.find_element_by_link_text(u'Add    another    Inner4    Stacked')
    add_button.click()
    self.assertEqual(rows_length(), 4)
