def test_coerce_to_bytes_converts_text(self):
        bytestr = b'some bytes'
        text = bytestr.decode('utf-8')
        assert dump._coerce_to_bytes(text) == bytestr
Create an object that can watch for changes in specified directories
dataset/ETHPy150Open sigmavirus24/requests-toolbelt/tests/test_dump.py/TestSimplePrivateFunctions.test_coerce_to_bytes_converts_text--crossover with--dataset/ETHPy150Open powerline/powerline/powerline/lib/watcher/__init__.py/create_tree_watcher