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_mkdir_and_rmdir():
"""Test the mkdir and rmdir call."""
directory = join(dirname(__file__), 'resources', 'test_dir')
yield from aiofiles.os.mkdir(directory)
assert isdir(directory)
yield from aiofiles.os.rmdir(directory)
assert exists(directory) is False