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

Move out to mixin.

parent 9e247a41
......@@ -5,7 +5,7 @@ import tempfile
import unittest
import socket
class TestSlapgridCP(unittest.TestCase):
class BasicMixin:
def setUp(self):
self._tempdir = tempfile.mkdtemp()
self.software_root = os.path.join(self._tempdir, 'software')
......@@ -25,6 +25,7 @@ class TestSlapgridCP(unittest.TestCase):
def tearDown(self):
shutil.rmtree(self._tempdir)
class TestSlapgridCP(BasicMixin, unittest.TestCase):
def test_no_software_root(self):
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