'Test aggregation: count (single axis)'

def testAggregateCount(self):

    period = self.period
    assertEqual = self.assertEqual
    totals = period.aggregate(S3TimeSeriesFact('count', 'base'))
    expected_rows = {'A': [4], 'B': [4], 'C': [4]}
    rows = period.rows
    assertEqual(set(rows.keys()), set(expected_rows.keys()))
    for (k, v) in rows.items():
        assertEqual(v, expected_rows.get(k), msg=('Row    %s:    %s    !=    %s' % (k, v, expected_rows.get(k))))
    assertEqual(period.cols, {})
    assertEqual(period.matrix, {})
    expected_totals = [12]
    assertEqual(period.totals, expected_totals)
    assertEqual(totals, expected_totals)
