new_contents: from testtools import TestCase
  from mock import Mock
  
  
  class ApiTest(TestCase):
      def setUp(self):
          super(ApiTest, self).setUp()
  
      def tearDown(self):
          super(ApiTest, self).tearDown()
  
      def _makeit(self, *args, **kw):
          from lacli.api import Api
          return Api(*args,  **kw)
  
      def test_api(self):
          assert self._makeit()
  
      def test_api_root(self):
          mattr = {'get.return_value': 'lala'}
          s = Mock(**mattr)
          api = self._makeit(url="http://baz.com/", session=s)
          self.assertEqual("lala", api.root())
          s.get.assert_called_with("http://baz.com/")
  
subject: add a unit test for the Api class