Skip to content

Instantly share code, notes, and snippets.

@alecmunro
Created August 16, 2011 18:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alecmunro/1149773 to your computer and use it in GitHub Desktop.
Save alecmunro/1149773 to your computer and use it in GitHub Desktop.
Confusion when not everything is mocked
def delete_file(self, name):
path = os.path.join(BASE_DIR, name)
if self.os.path.exists(path):
os.remove(path)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment