A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
| import shutil, tempfile | |
| from os import path | |
| import unittest | |
| class TestExample(unittest.TestCase): | |
| def setUp(self): | |
| # Create a temporary directory | |
| self.test_dir = tempfile.mkdtemp() | |
| def tearDown(self): |
| " Don't try to be vi compatible | |
| set nocompatible | |
| " Helps force plugins to load correctly when it is turned back on below | |
| filetype off | |
| " TODO: Load plugins here (pathogen or vundle) | |
| " Turn on syntax highlighting | |
| syntax on |