<commit_before>#!/usr/bin/env python
import unittest, os, json
from poetri.verify_poet import verify_poet


test_public_key = """
-----BEGIN CERTIFICATE-----
<KEY>
-----END CERTIFICATE-----
"""


encoded_jwt ="""<KEY>
"""





class TestVerifyPoet(unittest.TestCase):

    def test_verify_poet_happy(self):
        payload = verify_poet(encoded_jwt, test_public_key)
        
        """Test the POET JWT signing by ensuring exactly two periods in output."""
        self.assertEquals(type(payload), type({}))
        self.assertIn('iss', payload.keys())
        self.assertEquals(payload['iss'], 'transparenthealth.org')
        self.assertIn('iat', payload.keys())
        self.assertIn('exp', payload.keys())

if __name__ == '__main__':
    unittest.main()<commit_msg>Correcting comment in the test<commit_after>#!/usr/bin/env python
import unittest, os, json
from poetri.verify_poet import verify_poet


test_public_key = """
-----BEGIN CERTIFICATE-----
<KEY>
-----END CERTIFICATE-----
"""


encoded_jwt ="""<KEY>
"""



class TestVerifyPoet(unittest.TestCase):

    def test_verify_poet_happy(self):
        """Verify the JWT signature""" 
        payload = verify_poet(encoded_jwt, test_public_key)        
        self.assertEquals(type(payload), type({}))
        self.assertIn('iss', payload.keys())
        self.assertEquals(payload['iss'], 'transparenthealth.org')
        self.assertIn('iat', payload.keys())
        self.assertIn('exp', payload.keys())

if __name__ == '__main__':
    unittest.main()
{'fraction_non_alphanumeric': 0.16192994051553206, 'fraction_numerical': 0.0, 'mean_word_length': 3.3757225433526012, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4119571', 'n_tokens_mistral': 498, 'n_tokens_neox': 472, 'n_words': 97}