'Introspection of table names containing special characters,
unsuitable for Python identifiers'

def test_table_name_introspection(self):

    out = StringIO()
    call_command('inspectdb', table_name_filter=(lambda tn: tn.startswith('inspectdb_special')), stdout=out)
    output = out.getvalue()
    self.assertIn('class    InspectdbSpecialTableName(models.Model):', output)
