Revision 595149d5 test/py/ganeti.vcluster_unittest.py
b/test/py/ganeti.vcluster_unittest.py | ||
---|---|---|
108 | 108 |
|
109 | 109 |
class TestMakeNodeRoot(unittest.TestCase): |
110 | 110 |
def test(self): |
111 |
self.assertRaises(RuntimeError, vcluster._MakeNodeRoot, "/tmp", "/")
|
|
111 |
self.assertRaises(RuntimeError, vcluster.MakeNodeRoot, "/tmp", "/") |
|
112 | 112 |
|
113 | 113 |
for i in ["/tmp", "/tmp/", "/tmp///"]: |
114 |
self.assertEqual(vcluster._MakeNodeRoot(i, "other.example.com"),
|
|
114 |
self.assertEqual(vcluster.MakeNodeRoot(i, "other.example.com"), |
|
115 | 115 |
"/tmp/other.example.com") |
116 | 116 |
|
117 | 117 |
|
Also available in: Unified diff