def export_doc(doctype, name, module=None):
	from frappe.modules.export_file import write_document_file
	print doctype, name

	if not module: module = frappe.db.get_value('DocType', name, 'module')
	write_document_file(frappe.get_doc(doctype, name), module)
Test LoadFromByteString().
dataset/ETHPy150Open frappe/frappe/frappe/modules/__init__.py/export_doc--crossover with--dataset/ETHPy150Open google/simian/src/tests/simian/auth/x509_test.py/X509CertificateTest.testLoadFromByteStringWhenPyAsn1Error