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_remove():
"""Test the remove call."""
filename = join(dirname(__file__), 'resources', 'test_file2.txt')
with open(filename, 'w') as f:
f.write('Test file for remove call')
assert exists(filename)
yield from aiofiles.os.remove(filename)
assert exists(filename) is False