@@ -0,0 +1,721 @@
+from io import StringIO%0A%0Afrom mediawords.db import connect_to_db%0Afrom mediawords.db.export.export_tables import *%0A%0A%0Adef test_export_tables_to_backup_crawler():%0A    # Basic sanity test to make sure something gets printed out to STDOUT%0A    # FIXME it would be better to try importing the resulting dump somewhere%0A    db = connect_to_db()%0A%0A    orig_stdout = sys.stdout%0A    sys.stdout = captured_stdout = StringIO()%0A%0A    export_dump_exception = None%0A    try:%0A        export_tables_to_backup_crawler(db=db)%0A    except Exception as ex:%0A        export_dump_exception = str(ex)%0A%0A    sys.stdout = orig_stdout%0A%0A    assert export_dump_exception is None%0A%0A    sql_dump = captured_stdout.getvalue()%0A    assert 'COPY media' in sql_dump%0A

Add basic sanity test for export_tables_to_backup_crawler()