'Scenario: Given I have a library, a course and library content xblock in a course
When I go to studio unit page for library content block
And I set Problem Type selector so "Any"
Then I can see that "No matching content" warning is shown'

def test_not_enough_children_blocks(self):

    expected_tpl = 'The    specified    library    is    configured    to    fetch    {count}    problems,    but    there    are    only    {actual}    matching    problems.'
    library_container = self._get_library_xblock_wrapper(self.unit_page.xblocks[1])
    self.assertFalse(library_container.has_validation_error)
    self.assertFalse(library_container.has_validation_warning)
    library_container.edit()
    edit_modal = StudioLibraryContentEditor(self.browser, library_container.locator)
    edit_modal.count = 50
    library_container.save_settings()
    self.assertTrue(library_container.has_validation_warning)
    self.assertIn(expected_tpl.format(count=50, actual=len(self.library_fixture.children)), library_container.validation_warning_text)
