def setUp(self): self.event_type = "gold" fix_rel_path = "schemas/%s.avsc" % (self.event_type) self.avsc_file = TASRTestCase.get_fixture_file(fix_rel_path, "r") self.schema_str = self.avsc_file.read() self.schema_version = 0 self.expect_sha256_id = 'IEAsvOGuZfJFblDinapW428TgEn19HQX/AWBKzDeIzCR'
def setUp(self): self.event_type = "gold" fix_rel_path = "schemas/%s.avsc" % (self.event_type) self.avsc_file = TASRTestCase.get_fixture_file(fix_rel_path, "r") self.schema_str = self.avsc_file.read() self.tasr_app = TestApp(APP) self.url_prefix = 'http://%s:%s/tasr' % (APP.config.host, APP.config.port) self.topic_url = '%s/topic/%s' % (self.url_prefix, self.event_type) self.content_type = 'application/json; charset=utf8' # clear out all the keys before beginning -- careful! APP.ASR.redis.flushdb()