def test_make_column_name(self):
    tests = (('Column', 'column'), ('Foo_iD', 'foo_id'), ('foo_id', 'foo_id'), ('foo_id_id', 'foo_id_id'), ('foo', 'foo'), ('_id', '_id'), ('a123', 'a123'), ('and', 'and_'), ('Class', 'class_'), ('Class_ID', 'class_id'))
    for (col_name, expected) in tests:
        self.assertEqual(self.introspector.make_column_name(col_name), expected)
    tests = (('Foo_iD', 'foo'), ('foo_id', 'foo'), ('foo_id_id', 'foo_id'), ('foo', 'foo'), ('_id', '_id'), ('a123', 'a123'), ('and', 'and_'), ('Class', 'class_'), ('Class_ID', 'class_'))
    for (col_name, expected) in tests:
        self.assertEqual(self.introspector.make_column_name(col_name, True), expected)
def test_make_column_name(self):
    tests = (('Column', 'column'), ('Foo_iD', 'foo_id'), ('foo_id', 'foo_id'), ('foo_id_id', 'foo_id_id'), ('foo', 'foo'), ('_id', '_id'), ('a123', 'a123'), ('and', 'and_'), ('Class', 'class_'), ('Class_ID', 'class_id'))
    for (col_name, expected) in tests:
        self.assertEqual(self.introspector.make_column_name(col_name), expected)
    tests = (('Foo_iD', 'foo'), ('foo_id', 'foo'), ('foo_id_id', 'foo_id'), ('foo', 'foo'), ('_id', '_id'), ('a123', 'a123'), ('and', 'and_'), ('Class', 'class_'), ('Class_ID', 'class_'))
    for (col_name, expected) in tests:
        self.assertEqual(self.introspector.make_column_name(col_name, True), expected)