summaryrefslogtreecommitdiffstats
path: root/pym/portage/tests/bin/test_dodir.py
blob: 5d4018161699ad25f49846f6693ae7608c58b75b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# test_dodir.py -- Portage Unit Testing Functionality
# Copyright 2007-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

from portage.tests.bin.setup_env import BinTestCase, dodir, exists_in_D

class DoDir(BinTestCase):
	def testDoDir(self):
		self.init()
		try:
			dodir("usr /usr")
			exists_in_D("/usr")
			dodir("boot")
			exists_in_D("/boot")
			dodir("/var/lib/moocow")
			exists_in_D("/var/lib/moocow")
		finally:
			self.cleanup()