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_hash_from_buffer():
mview = memoryview('foo'.encode('utf8'))
assert mmh3.hash_from_buffer(mview) == -156908512
assert mmh3.hash_from_buffer(mview, signed = False) == 4138058784
def test_hash_from_buffer():
mview = memoryview('foo'.encode('utf8'))
assert mmh3.hash_from_buffer(mview) == -156908512
assert mmh3.hash_from_buffer(mview, signed = False) == 4138058784