308
310
# Ensure the template is correctly rendered using the given context.
309
311
context = {'foo': 'spam', 'bar': 'eggs'}
310
312
render_to_file(self.template_path, context, self.destination_file.name)
312
314
self.assertEqual(expected, self.destination_file.read())