Give each cli its own test.

This will give a nicer failure message, and results in 3
slowish tests instead of 1 really slow one.

Change-Id: I5c3fbd2507068908c165e163b8f458bf8cb00bc1
This commit is contained in:
Steve Baker 2013-05-06 10:53:56 +12:00
parent 6ad24e4d17
commit f149434eda
1 changed files with 9 additions and 3 deletions

View File

@ -23,10 +23,16 @@ basepath = os.path.join(heat.__path__[0], os.path.pardir)
class CliTest(unittest.TestCase):
def test_bins(self):
bins = ['heat-cfn', 'heat-boto', 'heat-watch']
def test_heat_cfn(self):
self.bin_test_run('heat-cfn')
for bin in bins:
def test_heat_boto(self):
self.bin_test_run('heat-boto')
def test_heat_watch(self):
self.bin_test_run('heat-watch')
def bin_test_run(self, bin):
fullpath = basepath + '/bin/' + bin
proc = subprocess.Popen(fullpath,