What is required?
Test if any of *.csv file is generated in the current directory. Note that the csv file is named after date/time so its not possible to get the file name in this case.
Problem
Tried the os.path.isfile([exact_path_to_file]) and it works. However what we need to find is if any one of the .csv file is generated if so, assertTrue else assertFalse. In case of assertTrue, will delete the file. Is this possible with python?
Reference
The closest of this is using a regular expression like this post however for this simple check is it really required to go for a regular expression?