def test_should_not_accept_all_digits(self): assert is_valid_page_header_candidate('123', 100) is False
def test_should_not_accept_long_text_if_below_min_count(self): assert is_valid_page_header_candidate( '123 ' + LONG_PAGE_HEADER_TEXT_1, 100, min_count=101) is False
def test_should_accept_long_text(self): assert is_valid_page_header_candidate(LONG_PAGE_HEADER_TEXT_1, 100) is True
def test_should_accept_long_text_starting_with_digit(self): assert is_valid_page_header_candidate('123 ' + LONG_PAGE_HEADER_TEXT_1, 100) is True
def test_should_not_accept_single_token_text(self): assert is_valid_page_header_candidate('ThisIsALongSingleToken', 100) is False