Fix unit tests cleanup for --resource-list option

This patch fixes the incomplete cleanup of unit tests for
`record_resources()` function. These unit tests are tied with the
tempest cleanup --resource-list option. The issue was the creation
of None file and resource_list.json file while running unit tests.

Closes-Bug: #2070449

Change-Id: Id8ff96606b30d52ad4c8a6bd31bcb09ae03cc963
2 files changed