self.assertEqual(self.Param('chxt'), 'y,t')

        sub_axis = self.chart.AddAxis(common.AxisPosition.BOTTOM,
                                      common.Axis())
        sub_axis.labels = ['CAPS', 'lower']
        sub_axis.label_positions = [0, 50]
        self.ExpectAxes('0:|10|20|30|1:|CAPS|lower|2:|cow|horse|monkey',
                        '0,0,50,100|1,0,50|2,3.7,10,-22.9')
        self.assertEqual(self.Param('chxt'), 'y,x,t')

        self.chart.bottom.labels = ['A', 'B', 'C']
        self.chart.bottom.label_positions = [0, 33, 66]
        self.ExpectAxes(
            '0:|10|20|30|1:|A|B|C|2:|CAPS|lower|3:|cow|horse|monkey',
            '0,0,50,100|1,0,33,66|2,0,50|3,3.7,10,-22.9')
        self.assertEqual(self.Param('chxt'), 'y,x,x,t')


# Extend LineChartTest so that we pick up & repeat all the line tests which
# Sparklines should continue to satisfy
class SparklineTest(LineChartTest):
    def GetChart(self, *args, **kwargs):
        return google_chart_api.Sparkline(*args, **kwargs)

    def testChartType(self):
        self.assertEqual(self.Param('cht'), 'lfi')


if __name__ == '__main__':
    graphy_test.main()
    self.assertEqual(self.Param('chxt'), 'y,t')

    sub_axis = self.chart.AddAxis(common.AxisPosition.BOTTOM,
                                  common.Axis())
    sub_axis.labels = ['CAPS', 'lower']
    sub_axis.label_positions = [0, 50]
    self.ExpectAxes('0:|10|20|30|1:|CAPS|lower|2:|cow|horse|monkey',
                    '0,0,50,100|1,0,50|2,3.7,10,-22.9')
    self.assertEqual(self.Param('chxt'), 'y,x,t')

    self.chart.bottom.labels = ['A', 'B', 'C']
    self.chart.bottom.label_positions = [0, 33, 66]
    self.ExpectAxes('0:|10|20|30|1:|A|B|C|2:|CAPS|lower|3:|cow|horse|monkey',
                    '0,0,50,100|1,0,33,66|2,0,50|3,3.7,10,-22.9')
    self.assertEqual(self.Param('chxt'), 'y,x,x,t')


# Extend LineChartTest so that we pick up & repeat all the line tests which
# Sparklines should continue to satisfy
class SparklineTest(LineChartTest):

  def GetChart(self, *args, **kwargs):
    return google_chart_api.Sparkline(*args, **kwargs)

  def testChartType(self):
    self.assertEqual(self.Param('cht'), 'lfi')


if __name__ == '__main__':
  graphy_test.main()