text: #!/usr/bin/python
  '''
    (C) Copyright 2018-2020 Intel Corporation.
  
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
  
       http://www.apache.org/licenses/LICENSE-2.0
  
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
  
    GOVERNMENT LICENSE RIGHTS-OPEN SOURCE SOFTWARE
    The Government's rights to use, modify, reproduce, release, perform, display,
    or disclose this software are subject to the terms of the Apache License as
    provided in Contract No. B609815.
    Any reproduction of computer software, computer software documentation, or
    portions thereof marked with this legend must also reproduce the markings.
  '''
  
  from __future__ import print_function
  
  import sys
  
  from avocado       import Test
  from avocado       import main
  
  sys.path.append('./util')
  
  from cart_utils import CartUtils
  
  class CartRpcTwoNodeTest(Test):
      """
      Runs basic CaRT RPC tests
  
      :avocado: tags=all,rpc,two_node
      """
      def setUp(self):
          """ Test setup """
          print("Running setup\n")
          self.utils = CartUtils()
          self.env = self.utils.get_env(self)
  
      def tearDown(self):
          """ Test tear down """
          print("Run TearDown\n")
  
      def test_cart_rpc(self):
          """
          Test CaRT RPC
  
          :avocado: tags=all,rpc,two_node
          """
          srvcmd = self.utils.build_cmd(self, self.env, "srv")
          clicmd = self.utils.build_cmd(self, self.env, "cli")
  
          self.utils.launch_srv_cli_test(self, srvcmd, clicmd)
          self.utils.log_check(self)
  
  if __name__ == "__main__":
      main()
  