def setUp(self):
     if sys.version_info < (3, 0):
         self.mock_oauth = mock.MagicMock()
         maasservice.oauth = self.mock_oauth
         self._maasservice = maasservice.MaaSHttpService()
     else:
         self.skipTest("Python 3 is not yet supported for maasservice")
 def setUp(self):
     self._maasservice = maasservice.MaaSHttpService()