def test_replace_filename_with_cid(self):
        original_message = '''
			<div>
				<img embed="assets/frappe/images/frappe-favicon.svg" alt="test" />
				<img embed="notexists.jpg" />
			</div>
		'''
        message, inline_images = replace_filename_with_cid(original_message)

        processed_message = '''
			<div>
				<img src="cid:{0}" alt="test" />
				<img  />
			</div>
		'''.format(inline_images[0].get('content_id'))
        self.assertEqual(message, processed_message)
	def test_replace_filename_with_cid(self):
		original_message = '''
			<div>
				<img embed="assets/frappe/images/favicon.png" alt="test" />
				<img embed="notexists.jpg" />
			</div>
		'''
		message, inline_images = replace_filename_with_cid(original_message)

		processed_message = '''
			<div>
				<img src="cid:{0}" alt="test" />
				<img  />
			</div>
		'''.format(inline_images[0].get('content_id'))
		self.assertEquals(message, processed_message)