Commit 071c897c authored by Łukasz Nowak's avatar Łukasz Nowak

Move out to mixin.

parent 9e247a41
...@@ -5,7 +5,7 @@ import tempfile ...@@ -5,7 +5,7 @@ import tempfile
import unittest import unittest
import socket import socket
class TestSlapgridCP(unittest.TestCase): class BasicMixin:
def setUp(self): def setUp(self):
self._tempdir = tempfile.mkdtemp() self._tempdir = tempfile.mkdtemp()
self.software_root = os.path.join(self._tempdir, 'software') self.software_root = os.path.join(self._tempdir, 'software')
...@@ -25,6 +25,7 @@ class TestSlapgridCP(unittest.TestCase): ...@@ -25,6 +25,7 @@ class TestSlapgridCP(unittest.TestCase):
def tearDown(self): def tearDown(self):
shutil.rmtree(self._tempdir) shutil.rmtree(self._tempdir)
class TestSlapgridCP(BasicMixin, unittest.TestCase):
def test_no_software_root(self): def test_no_software_root(self):
self.assertRaises(OSError, self.grid.processComputerPartitionList) self.assertRaises(OSError, self.grid.processComputerPartitionList)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment