Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_cluster_level(self):
buf = hb.Buffer()
assert buf.cluster_level == hb.BufferClusterLevel.DEFAULT
buf.cluster_level = hb.BufferClusterLevel.MONOTONE_CHARACTERS
assert buf.cluster_level == hb.BufferClusterLevel.MONOTONE_CHARACTERS
buf.cluster_level = hb.BufferClusterLevel.MONOTONE_GRAPHEMES
assert buf.cluster_level == hb.BufferClusterLevel.MONOTONE_GRAPHEMES
buf.cluster_level = hb.BufferClusterLevel.CHARACTERS
assert buf.cluster_level == hb.BufferClusterLevel.CHARACTERS
buf.cluster_level = hb.BufferClusterLevel.DEFAULT
assert buf.cluster_level == hb.BufferClusterLevel.DEFAULT
def test_cluster_level(self):
buf = hb.Buffer()
assert buf.cluster_level == hb.BufferClusterLevel.DEFAULT
buf.cluster_level = hb.BufferClusterLevel.MONOTONE_CHARACTERS
assert buf.cluster_level == hb.BufferClusterLevel.MONOTONE_CHARACTERS
buf.cluster_level = hb.BufferClusterLevel.MONOTONE_GRAPHEMES
assert buf.cluster_level == hb.BufferClusterLevel.MONOTONE_GRAPHEMES
buf.cluster_level = hb.BufferClusterLevel.CHARACTERS
assert buf.cluster_level == hb.BufferClusterLevel.CHARACTERS
buf.cluster_level = hb.BufferClusterLevel.DEFAULT
assert buf.cluster_level == hb.BufferClusterLevel.DEFAULT