'Test errors in invalid helpers.'

def testInvalidHelpers(self):

    class MissingMeta(SeriesHelper, ):
        'Define    SeriesHelper    object    for    MissingMeta    test.'
        pass
    class MissingClient(SeriesHelper, ):
        'Define    SeriesHelper    object    for    MissingClient    test.'
        class Meta:
            'Define    metadata    for    MissingClient    object.'
            series_name = 'events.stats.{server_name}'
            fields = ['time', 'server_name']
            autocommit = True
    class MissingSeriesName(SeriesHelper, ):
        'Define    SeriesHelper    object    for    MissingSeries    test.'
        class Meta:
            'Define    metadata    for    MissingSeriesName    object.'
            fields = ['time', 'server_name']
    class MissingFields(SeriesHelper, ):
        'Define    SeriesHelper    for    MissingFields    test.'
        class Meta:
            'Define    metadata    for    MissingFields    object.'
            series_name = 'events.stats.{server_name}'
    for cls in [MissingMeta, MissingClient, MissingFields, MissingSeriesName]:
        self.assertRaises(AttributeError, cls, **{'time': 159, 'server_name': 'us.east-1'})
