Skip to content

Commit

Permalink
Adding key encryption algo option to support rsaes_oaep.
Browse files Browse the repository at this point in the history
  • Loading branch information
chadgates committed Mar 18, 2024
1 parent 43b84e3 commit e02be38
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pyas2lib/tests/test_advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import asyncio


class TestAdvanced(Pyas2TestCase):
def setUp(self):
self.org = as2.Organization(
Expand Down Expand Up @@ -529,7 +530,7 @@ async def test_duplicate_message_async(self):

# Parse the generated AS2 message as the partner
raw_out_message = (
self.out_message.headers_str + b"\r\n" + self.out_message.content
self.out_message.headers_str + b"\r\n" + self.out_message.content
)
in_message = as2.Message()
_, _, mdn = await in_message.parse(
Expand Down Expand Up @@ -567,7 +568,6 @@ async def test_async_partnership(self):
self.assertEqual(status, "processed")
self.assertEqual(self.test_data, in_message.content)


def find_org(self, headers):
return self.org

Expand All @@ -588,6 +588,8 @@ async def afind_duplicate_message(self, message_id, message_recipient):

async def afind_org_partner(self, as2_org, as2_partner):
return self.org, self.partner


class SterlingIntegratorTest(Pyas2TestCase):
def setUp(self):
self.org = as2.Organization(
Expand Down

0 comments on commit e02be38

Please sign in to comment.