old_contents: import otc
  
  class TestElbClient:
      """ELB client tests"""
  
      def setUp(self):
          """Setup test cloud"""
          self.cloud = otc.OtcCloud(cloud='test')
  
      def tearDown(self):
          pass
  
      def test_elbclient_user_agent(self):
          """Check user agent"""
          assert self.cloud.elbclient.client.USER_AGENT == 'python-otcclient'
  
      def test_elbclient_elb(self):
          """List elbs"""
          elbs = self.cloud.elbclient.elb.list()
          assert len(elbs) >= 0
          elbs = self.cloud.elbclient.elb.list(vpcid='foo')
          assert len(elbs) >= 0
          elbs = self.cloud.elbclient.elb.list('foo')
          assert len(elbs) >= 0
  
      def test_elbclient_listener(self):
          """List listeners"""
          lstns = self.cloud.elbclient.listener.list()
          assert len(lstns) >= 0
          lstns = self.cloud.elbclient.listener.list('foo')
          assert len(lstns) >= 0
          lstns = self.cloud.elbclient.listener.list(elbid='foo')
          assert len(lstns) >= 0
  
  # vim: sts=4 sw=4 ts=4 et:
  
new_contents: import otc
  
  class TestElbClient:
      """ELB client tests"""
  
      def setUp(self):
          """Setup test cloud"""
          self.cloud = otc.OtcCloud(cloud='test')
  
      def tearDown(self):
          pass
  
      def test_elbclient_user_agent(self):
          """Check user agent"""
          assert self.cloud.elbclient.client.USER_AGENT == 'python-otcclient'
  
      def test_elbclient_service_url(self):
          """Check ELB service url"""
          assert self.cloud.elbclient.service_url == "https://elb.eu-de.otc.t-systems.com"
  
      def test_elbclient_elb(self):
          """List elbs"""
          elbs = self.cloud.elbclient.elb.list()
          assert len(elbs) >= 0
          elbs = self.cloud.elbclient.elb.list(vpcid='foo')
          assert len(elbs) >= 0
          elbs = self.cloud.elbclient.elb.list('foo')
          assert len(elbs) >= 0
  
      def test_elbclient_listener(self):
          """List listeners"""
          lstns = self.cloud.elbclient.listener.list()
          assert len(lstns) >= 0
          lstns = self.cloud.elbclient.listener.list('foo')
          assert len(lstns) >= 0
          lstns = self.cloud.elbclient.listener.list(elbid='foo')
          assert len(lstns) >= 0
  
  # vim: sts=4 sw=4 ts=4 et:
  
subject: Check the ELB service url