'Scenario: Ensures that library content shows {count} random xblocks from library in LMS
Given I have a library, a course and a LibraryContent block in that course
When I go to studio unit page for library content xblock as staff
And I set library content xblock to display {count} random children
And I refresh library content xblock and pulbish unit
When I go to LMS courseware page for library content xblock as student
Then I can see {count} random xblocks from the library'

@ddt.data(2, 3, 4)
def test_shows_random_xblocks_from_configured(self, count):

    self._change_library_content_settings(count=count)
    self._auto_auth(self.USERNAME, self.EMAIL, False)
    self._goto_library_block_page()
    children_contents = self.library_content_page.children_contents
    self.assertEqual(len(children_contents), count)
    self.assertLessEqual(children_contents, self.library_xblocks_texts)
