@staticmethod
    def test_column_can_set_primary():
        column = Column(
            column_name='test',
            column_type='INTEGER',
            is_null=True,
            is_not_null=False
        )
        eq_(column.primary, False)
        eq_(column.is_null, True)
        eq_(column.is_not_null, False)
        column.primary = True
        eq_(column.primary, True)
        eq_(column.is_null, False)
        eq_(column.is_not_null, True)
Tests that setting a column to primary works as intended
dataset/ETHPy150Open coursera/dataduct/dataduct/database/tests/test_column.py/TestColumn.test_column_can_set_primary