def test_template(self, template_name, template): self.assertEqual( template, helper.template_from_testdata(template_name, 'streamingaead'))
def test_template(self, template_name, template): self.assertEqual(template, helper.template_from_testdata(template_name, 'jwt'))
def test_template_from_testdata(self): template = helper.template_from_testdata('AES128_GCM', 'aead') self.assertEqual(template.type_url, 'type.googleapis.com/google.crypto.tink.AesGcmKey')