text: import unittest
  
  from mock import patch
  
  from zoomus import components
  
  
  def suite():
      """Define all the tests of the module."""
      suite = unittest.TestSuite()
      suite.addTest(unittest.makeSuite(CreateV1TestCase))
      return suite
  
  
  class CreateV1TestCase(unittest.TestCase):
  
      def setUp(self):
          self.component = components.user.UserComponent(
              base_uri="http://foo.com",
              config={
                  'api_key': 'KEY',
                  'api_secret': 'SECRET'
              }
          )
  
      def test_can_create(self):
          with patch.object(components.base.BaseComponent, 'post_request',
                            return_value=True) as mock_post_request:
  
              self.component.create()
  
              mock_post_request.assert_called_with(
                  "/user/create",
                  params={}
              )
  
  
  class CreateV2TestCase(unittest.TestCase):
  
      def setUp(self):
          self.component = components.user.UserComponentV2(
              base_uri="http://foo.com",
              config={
                  'api_key': 'KEY',
                  'api_secret': 'SECRET'
              }
          )
  
      @patch.object(components.base.BaseComponent, 'post_request', return_value=True)
      def test_can_create(self, mock_post_request):
          self.component.create(foo="bar")
          mock_post_request.assert_called_with(
              "/users",
              params={'foo': 'bar'}
          )
  
  
  if __name__ == '__main__':
      unittest.main()
  