def testBasic( self ):

      style1 = MyStyle( 'Style #1' )
      style1.figure.text.size = 12
      style1.axes.text.size = 8

      style2 = MyStyle( 'Style #2' )
      style2.figure.bgColor = 'grey'
      style2.axes.bgColor = 'white'

      style3 = MyStyle( 'Style #3', parent = style1 )
      style3.figure.text.size = 24

      # Resolved 3 with 2
      style4 = MyStyle( 'Style #4' )
      style4.figure.text.size = 24
      style4.axes.text.size = 8
      style4.figure.bgColor = 'grey'
      style4.axes.bgColor = 'white'

      # Update 3 with 2
      style5 = MyStyle( 'Style #5' )
      style5.figure.text.size = 24
      style5.figure.bgColor = 'grey'
      style5.axes.bgColor = 'white'

      # kwarg CTOR
      style6 = MyStyle( 'Style #6',
                        { 'figure.text.size' : 24,
                          'figure.bgColor' : 'grey',
                          'axes.bgColor' : 'white',
                        } )

      style7 = MyStyle( 'Style #7',
                        { 'parent' : style1,
                          'figure.text.size' : 24,
                        } )

      msg = "Incorrect name"
      self.assertEqual( "Style #1", style1.name, msg = msg )

      msg = "Failed direct access: style1.figure.text.size"
      self.assertEqual( 12, style1.figure.text.size, msg = msg )

      msg = "Failed direct access: style3.figure.text.size"
      self.assertEqual( 24, style3.figure.text.size, msg = msg )

      msg = "Failed getValue: style1.figure.text.size"
      self.assertEqual( 12, style1.getValue( 'figure.text.size' ), msg = msg )

      msg = "Failed getValue: style3.figure.text.size"
      self.assertEqual( 24, style3.getValue( 'figure.text.size' ), msg = msg )

      msg = "Failed getValue: style3.axes.text.size"
      self.assertEqual( None, style3.getValue( 'axes.text.size' ), msg = msg )

      msg = "Failed getResolvedValue: style3.axes.text.size"
      self.assertEqual( 8, style3.getResolvedValue( 'axes.text.size' ), msg = msg )

      newStyle = style3.resolve( 'NewStyle', style2 )
      self.checkStyleEq( 'Resolve', style4, newStyle )

      newStyle = style3.copy( 'NewStyle' )
      self.checkStyleEq( 'Copy', style3, newStyle )

      newStyle.update( style2 )
      self.checkStyleEq( 'Update', style5, newStyle )

      self.checkStyleEq( 'kwarg CTOR #1', style5, style6 )
      self.checkStyleEq( 'kwarg CTOR #2', style3, style7 )

      def customFunc( obj ):
         obj.figureBgColor = 'grey'
         obj.axesBgColor = 'white'

      style3.custom = customFunc

      obj = S.types.Data(
         figureTextSize = None,
         figureTextColor = None,
         figureBgColor = None,
         figureFgColor = None,
         axesTextSize = None,
         axesTextColor = None,
         axesBgColor = None,
         axesFgColor = None,
      )

      style3.apply( obj )
      self.checkObj( 'Apply', obj, style4 )

      self.assertEqual( False, style3.canApply( obj ), msg = "Incorrect return value." )

      style1.setValue( 'figure.text.size', 10 )
      msg = "Failed setValue: style1.figure.text.size"
      self.assertEqual( 10, style1.getValue( 'figure.text.size' ), msg = msg )

      newStyle = MyStyle.resolveStyles( None, style1 )
      self.checkStyleEq( 'resolveStyles [01]', style1, newStyle )

      newStyle = MyStyle.resolveStyles( None, [style2, style3] )
      self.checkStyleEq( 'resolveStyles [02]', style4, newStyle )

   #-----------------------------------------------------------------------
Test if push_dir succeeds on a file.
dataset/ETHPy150Open nasa/mplStyle/mplStyle/types/test/test_Style.py/TestStyle.testBasic--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/modules/cp_test.py/CpTestCase.test_push_dir_file_success