'Simulate the custom SQL loading by syncdb.'

def test_custom_sql(self):

    connection = connections[DEFAULT_DB_ALIAS]
    custom_sql = custom_sql_for_model(Simple, no_style(), connection)
    self.assertEqual(len(custom_sql), 9)
    cursor = connection.cursor()
    for sql in custom_sql:
        cursor.execute(sql)
    self.assertEqual(Simple.objects.count(), 9)
    self.assertEqual(Simple.objects.get(name__contains='placeholders').name, '"100%"    of    %    are    not    placeholders')
