def test_set_column_not_null(self):
        inmap = self.std_map()
        inmap['schema public'].update({'table t1': {
            'columns': [{'c1': {'type': 'integer', 'not_null': True}},
                        {'c2': {'type': 'text'}}]}})
        sql = self.to_sql(inmap, [CREATE_STMT1])
        assert fix_indent(sql[0]) == \
            "ALTER TABLE t1 ALTER COLUMN c1 SET NOT NULL"
Change a nullable column to NOT NULL
dataset/ETHPy150Open perseas/Pyrseas/tests/dbobject/test_column.py/ColumnToSqlTestCase.test_set_column_not_null