Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def assert_rst_equal(self, rstfile, expected, **kwargs):
pelican = Pelican(settings=get_settings(**kwargs))
reader = Readers(pelican.settings)
content = reader.read_file(base_path=RESOURCES_PATH, path=rstfile).content
self.assertEqual(normalize(content), normalize(expected))