'Tests that defining primary keys on counter columns fails'

def test_defining_a_primary_key_counter_column_fails(self):

    try:
        class model(Model, ):
            partition = columns.UUID(primary_key=True, default=uuid4)
            cluster = columns.Counter(primary_ley=True)
            counter = columns.Counter()
        self.fail('did    not    raise    expected    TypeError')
    except TypeError:
        pass
    try:
        class model(Model, ):
            partition = columns.UUID(primary_key=True, default=uuid4)
            cluster = columns.Counter()
            cluster.primary_key = True
            counter = columns.Counter()
        self.fail('did    not    raise    expected    ModelDefinitionException')
    except ModelDefinitionException:
        pass
