'Tests that columns instantiated with a column class work properly
and that the class is instantiated in the constructor
@since 3.1
@jira_ticket PYTHON-306
@expected_result types are instantiated correctly
@test_category object_mapper'

def test_instantiation_with_column_class(self):

    mixed_tuple = columns.Tuple(columns.Text, columns.Integer, columns.Text, required=False)
    self.assertIsInstance(mixed_tuple.types[0], columns.Text)
    self.assertIsInstance(mixed_tuple.types[1], columns.Integer)
    self.assertIsInstance(mixed_tuple.types[2], columns.Text)
    self.assertEqual(len(mixed_tuple.types), 3)
