def make_field_type_asserter(self):
out = StringIO()<EOL>call_command('<STR_LIT>', '<STR_LIT>', stdout=out)<EOL>output = out.getvalue()<EOL>def assertFieldType(name, definition):<EOL><INDENT>out_def = re.search(r'<STR_LIT>' % name, output, re.MULTILINE).groups()[<NUM_LIT:0>]<EOL>self.assertEqual(definition, out_def)<EOL><DEDENT>return assertFieldType<EOL>
Call inspectdb and return a function to validate a field type in its output