X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/4e5a68f8081f00e37c6250f3ba6246399e89c413..43c16a8a1adfd543751fcaf60ad4c8e04cf83688:/test/ganeti.rapi.resources_unittest.py diff --git a/test/ganeti.rapi.resources_unittest.py b/test/ganeti.rapi.resources_unittest.py index 11d3450..5d53118 100755 --- a/test/ganeti.rapi.resources_unittest.py +++ b/test/ganeti.rapi.resources_unittest.py @@ -31,6 +31,8 @@ from ganeti import http from ganeti.rapi import connector from ganeti.rapi import rlib2 +import testutils + class MapperTests(unittest.TestCase): """Tests for remote API URI mapper.""" @@ -67,19 +69,5 @@ class MapperTests(unittest.TestCase): self._TestFailingUri("/instances/does/not/exist") -class R_RootTests(unittest.TestCase): - """Testing for R_root class.""" - - def setUp(self): - self.root = connector.R_root(None, None, None) - - def testGet(self): - expected = [ - {'name': '2', 'uri': '/2'}, - {'name': 'version', 'uri': '/version'}, - ] - self.assertEquals(self.root.GET(), expected) - - if __name__ == '__main__': - unittest.main() + testutils.GanetiTestProgram()