'Test to ensure case sensitivity is honored when __table_name_case_sensitive__ flag is set
@since 3.1
@jira_ticket PYTHON-337
@expected_result table_name case is respected
@test_category object_mapper'

def test_column_family_case_sensitive(self):

    class TestModel(Model, ):
        __table_name__ = 'TestModel'
        __table_name_case_sensitive__ = True
        k = columns.Integer(primary_key=True)
    self.assertEqual(TestModel.column_family_name(), ('%s."TestModel"' % (models.DEFAULT_KEYSPACE,)))
    TestModel.__keyspace__ = 'my_test_keyspace'
    self.assertEqual(TestModel.column_family_name(), ('%s."TestModel"' % (TestModel.__keyspace__,)))
    del TestModel.__keyspace__
    with patch('cassandra.cqlengine.models.DEFAULT_KEYSPACE', None):
        self.assertRaises(CQLEngineException, TestModel.column_family_name)
        self.assertEqual(TestModel.column_family_name(include_keyspace=False), '"TestModel"')
