tests: add assertExists/assertNotExists helpers
authorMike Frysinger <vapier@gentoo.org>
Wed, 16 Oct 2013 20:51:56 +0000 (16:51 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 16 Oct 2013 20:53:41 +0000 (16:53 -0400)
commit81c3a7c87b29f67c2a573d51cca8b38f462f6757
tree6e351308779247bdf3571905d76ea438ad2d2fcb
parentfbe5409a3bebeee9c729a21e2c88a3f93c26e992
tests: add assertExists/assertNotExists helpers

This makes it easy to assert the state of paths and when things fail,
get a good error message in the process (without having to dig into
temp dirs by hand).

This has largely been cribbed from ChromiumOS's chromite module.
pym/portage/tests/__init__.py
pym/portage/tests/ebuild/test_config.py