l0b0/vcard — pull request #13 by Zearin (2012-10-25 16:53:41+00:00)
Title: Fixed broken build

## I am an idiot

Previously, I was running `test/test_package.py` all by itself. Since I saw no errors, I assumed there were no problems.

Of course, there is no `if __name__ == '__main__': ...` in `test_package.py`. So when I ran it, Python was loading the tests, doing nothing, and exiting.

/facepalm

### Where my idiocy came from

I’m not familiar `unittest`. (I prefer [PyVows](http://pyvows.org).) For that matter, I’m not familiar with `Distribute`; I’ve never published to PyPI.

However…I am sufficiently embarrassed to remember this lesson well. ☺

## But the build is all better now

```bash
$ ./setup.py test
running test
running egg_info
writing requirements to vcard.egg-info/requires.txt
writing vcard.egg-info/PKG-INFO
writing top-level names to vcard.egg-info/top_level.txt
writing dependency_links to vcard.egg-info/dependency_links.txt
writing entry points to vcard.egg-info/entry_points.txt
reading manifest file 'vcard.egg-info/SOURCES.txt'
writing manifest file 'vcard.egg-info/SOURCES.txt'
running build_ext
test_doc (test.test_package.TestVCards)
Run DocTests ... ok
test_failing (test.test_package.TestVCards)
vCards with errors ... ok
test_online (test.test_package.TestVCards)
vCards in references which are invalid ... ok
test_valid (test.test_package.TestVCards)
Valid (but not necessarily sane) vCards ... ok

----------------------------------------------------------------------
Ran 4 tests in 2.127s

OK
```