def _assert_parse_results(index_filename, expected=None): html_str = read_index(index_filename) actual = index_parser.parse( base_url='https://pypi.python.org/simple', package_path='Sphinx', html_str=html_str) eq_(actual, expected)
def _assert_parse_results(index_rows, output_file): actual_html_str = index_builder.build( index_rows=index_rows) expected_html_str = read_index(output_file) eq_(actual_html_str, expected_html_str)
def _assert_parse_results(index_rows, output_file): actual_html_str = index_builder.build(index_rows=index_rows) expected_html_str = read_index(output_file) eq_(actual_html_str, expected_html_str)