old_contents: ##################################################
  #
  #   Author          : josuebrunel
  #   Filename        : tests.py
  #   Description     :
  #   Creation Date   : 03-04-2015
  #   Last Modified   : Fri 03 Apr 2015 03:56:21 PM UTC
  #
  ##################################################
  
  import os
  import unittest
  import subprocess
  
  class TestYqlQuery(unittest.TestCase):
  
      def execute(self, args):
          query="'select * from geo.countries where name=\"Congo\"'"
          cmd="python lokingyql-cli.py execute {0} {1}".format(args, query)
          print(cmd)
          exit_code = subprocess.call("{0}".format(cmd), shell=True)
          return exit_code
  
      def testJsonCompact(self,):
          self.assertEquals(self.execute('--format json --jsonCompact'),0)
  
      def testDiagnostics(self,):
          self.assertEquals(self.execute('--diagnostics'),0)
  
      def testDebug(self,):
          self.assertEquals(self.execute('--debug'),0)
  
  
new_contents: ##################################################
  #
  #   Author          : josuebrunel
  #   Filename        : tests.py
  #   Description     :
  #   Creation Date   : 03-04-2015
  #   Last Modified   : Fri 03 Apr 2015 04:00:49 PM UTC
  #
  ##################################################
  
  import os
  import unittest
  import subprocess
  
  class TestYqlQuery(unittest.TestCase):
  
      def execute(self, args):
          query="'select * from geo.countries where name=\"Congo\"'"
          cmd="python lokingyql-cli.py execute {0} {1}".format(args, query)
          print(cmd)
          exit_code = subprocess.call("{0}".format(cmd), shell=True)
          return exit_code
  
      def testJsonCompact(self,):
          self.assertEquals(self.execute('--format json --jsonCompact'),0)
  
      def testDiagnostics(self,):
          self.assertEquals(self.execute('--diagnostics'),0)
  
      def testDebug(self,):
          self.assertEquals(self.execute('--debug'),0)
  
      def testAllOptions(self,):
          self.assertEquals(self.execute('--format json --debug --diagnostics --jsonCompact'),0)
  
subject: fix #6 : payloader option are all ok