def testError( self ):

      import matplotlib.axis
      import matplotlib.text

      class MyAxis( matplotlib.axis.Axis ):
         def _get_label( self, *args, **kwargs ):
            return matplotlib.text.Text( x=0, y=0 )
         def _get_offset_text( self, *args, **kwargs ):
            return matplotlib.text.Text( x=0, y=0 )
         def _get_tick( self, *args, **kwargs ):
            return matplotlib.axis.XTick( self.axes, 0, '' )
         def get_view_interval( self, *args, **kwargs ):
            return self.axes.viewLim.intervalx

      fig = mpl.figure.Figure()
      ax = mpl.axes.Axes( fig, [ 0.2, 0.2, 0.6, 0.6 ] )

      # Create neither an x or y axis
      axis = MyAxis( ax )

      xStyle = MplAxisStyle()

      self.assertRaises( Exception, xStyle.apply, axis,
                   msg = "Failed to throw with invalid axis type." )

   #-----------------------------------------------------------------------
Create or update the planetlab interface in the DB from the Element
dataset/ETHPy150Open nasa/mplStyle/mplStyle/test/test_MplAxisStyle.py/TestMplAxisStyle.testError--crossover with--dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/expedient_geni/planetlab/sfa-models.py/PlanetLabInterface.get_from_elem