'Test errors in invalid helpers.'

def testInvalidHelpers(self):

    class MissingMeta(SeriesHelper, ):
        u'Define    instance    of    SeriesHelper    for    missing    meta.'
        pass
    class MissingClient(SeriesHelper, ):
        u'Define    SeriesHelper    for    missing    client    data.'
        class Meta:
            u'Define    metadat    for    MissingClient.'
            series_name = u'events.stats.{server_name}'
            fields = [u'time', u'server_name']
            autocommit = True
    class MissingSeriesName(SeriesHelper, ):
        u'Define    instance    of    SeriesHelper    for    missing    series.'
        class Meta:
            u'Define    metadata    for    MissingSeriesName.'
            fields = [u'time', u'server_name']
    class MissingFields(SeriesHelper, ):
        u'Define    instance    of    SeriesHelper    for    missing    fields.'
        class Meta:
            u'Define    metadata    for    MissingFields.'
            series_name = u'events.stats.{server_name}'
    for cls in [MissingMeta, MissingClient, MissingFields, MissingSeriesName]:
        self.assertRaises(AttributeError, cls, **{u'time': 159, u'server_name': u'us.east-1'})
