From badd6b45689de43efe873182ed2decace62ffc85 Mon Sep 17 00:00:00 2001 From: David Doty Date: Wed, 17 Aug 2022 09:55:27 -0600 Subject: [PATCH] fixed last unit test --- tests/scadnano_tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/scadnano_tests.py b/tests/scadnano_tests.py index b17ac560..cd41d2e2 100644 --- a/tests/scadnano_tests.py +++ b/tests/scadnano_tests.py @@ -2850,8 +2850,8 @@ def test_add_half_crossover__horizontal_crossovers_already_there(self) -> None: with self.assertRaises(sc.IllegalDesignError) as ctx: design.add_half_crossover(helix=0, helix2=1, offset=8, forward=True) msg = str(ctx.exception) - self.assertIn('is expected to be on the', msg) # both 3' and 5' are problems, so just make sure - self.assertIn('end of the strand', msg) # one of them is mentioned here + self.assertIn('is expected to be on the', msg) # both 3' and 5' are problems, so just make sure + self.assertIn('end of the strand', msg) # one of them is mentioned here def test_add_half_crossover__top_horizontal_crossover_already_there(self) -> None: """ @@ -5109,7 +5109,7 @@ def test_to_json_extension_design__extension(self) -> None: document = json.loads(result) self.assertEqual(2, len(document["strands"][0]["domains"])) self.assertIn(sc.extension_key, document["strands"][0]["domains"][1]) - self.assertEqual(5, document["strands"][0]["domains"][1]["extension"]) + self.assertEqual(5, document["strands"][0]["domains"][1][sc.extension_key]) class TestIllegalStructuresPrevented(unittest.TestCase):