'Ensure cell for the day in the input has the `selected` CSS class.
Refs #4574.'

def test_calendar_selected_class(self):

    self.admin_login(username='super', password='secret', login_url='/')
    self.selenium.get((self.live_server_url + reverse('admin:admin_widgets_member_add')))
    self.selenium.find_element_by_id('id_birthdate_0').send_keys('2013-06-01')
    self.selenium.find_element_by_id('calendarlink0').click()
    calendar0 = self.selenium.find_element_by_id('calendarin0')
    tds = calendar0.find_elements_by_tag_name('td')
    selected = tds[6]
    self.assertEqual(selected.get_attribute('class'), 'selected')
    self.assertEqual(selected.text, '1')
