def test_date_created_override(self):
        xml_file_path = os.path.join(
            settings.ONADATA_DIR, "apps", "logger", "fixtures",
            "tutorial", "instances", "tutorial_2012-06-27_11-27-53.xml")
        xml_file = django_file(
            xml_file_path, field_name="xml_file", content_type="text/xml")
        media_files = []
        date_created = datetime.strptime("2013-01-01 12:00:00",
                                         "%Y-%m-%d %H:%M:%S")
        instance = create_instance(
            self.user.username, xml_file, media_files,
            date_created_override=date_created)
        self.assertIsNotNone(instance)
        self.assertEqual(instance.date_created.strftime("%Y-%m-%d %H:%M:%S"),
                         date_created.strftime("%Y-%m-%d %H:%M:%S"))
Test that passing a date_created_override when creating and instance
dataset/ETHPy150Open kobotoolbox/kobocat/onadata/apps/logger/tests/test_backup_tools.py/TestBackupTools.test_date_created_override