introduce new cdist.test.CdistTestCase base class which handles common tasks
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
56787617d0
commit
97ab6effa4
9 changed files with 25 additions and 69 deletions
|
|
@ -19,9 +19,7 @@
|
|||
#
|
||||
#
|
||||
|
||||
import unittest
|
||||
import os
|
||||
import tempfile
|
||||
import getpass
|
||||
import shutil
|
||||
import string
|
||||
|
|
@ -31,13 +29,7 @@ import cdist
|
|||
from cdist.exec import remote
|
||||
|
||||
|
||||
class RemoteTestCase(unittest.TestCase):
|
||||
|
||||
def mkdtemp(self, **kwargs):
|
||||
return tempfile.mkdtemp(prefix='tmp.cdist.test.', **kwargs)
|
||||
|
||||
def mkstemp(self, **kwargs):
|
||||
return tempfile.mkstemp(prefix='tmp.cdist.test.', **kwargs)
|
||||
class RemoteTestCase(test.CdistTestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.temp_dir = self.mkdtemp()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue