Spaces:
Runtime error
Runtime error
File size: 316 Bytes
9437b2f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from os import environ
def assert_in(file, files_to_check):
if file not in files_to_check:
raise AssertionError("{} does not exist in the list".format(str(file)))
return True
def assert_in_env(check_list: list):
for item in check_list:
assert_in(item, environ.keys())
return True
|