this would actually be checked as the test runner starts up. the test runner would exit if it found data, leaving the user to clear the data directory if it is needed for the tests, else provide and alternative. 
this call would actually be made every time a test exits, as part of the fixture teardown, (see conftest.py) and the test author need never worry about such matters.