def test_single_replace(self): """Test replacing of a single slideshow tag""" new_content = render_slideshows(self.content_single, template='slideshows/slideshow_test.html') expected_content = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit test test test\n' self.assertEqual(str(new_content), expected_content)
def test_multi_replace(self): """Test replacing of multiple slideshow tags""" new_content = render_slideshows new_content = render_slideshows(self.content_multi, template='slideshows/slideshow_test.html') expected_content = 'test test test\nLorem ipsum dolor sit amet, consectetur adipisicing elit test test test\n'