diff --git a/tests/builtin_specifications/test_EnforceMeltingTemperature.py b/tests/builtin_specifications/test_EnforceMeltingTemperature.py new file mode 100644 index 0000000..356fdbc --- /dev/null +++ b/tests/builtin_specifications/test_EnforceMeltingTemperature.py @@ -0,0 +1,17 @@ +from dnachisel import DnaOptimizationProblem +from dnachisel.builtin_specifications import ( + EnforceMeltingTemperature, +) + + +def test_enforce_metling_temperature(): + """Test by creating a new primer.""" + # Test issue #89 + problem = DnaOptimizationProblem( + sequence="ATTTGAGACCCGACGTTAGA", + objectives=[ + EnforceMeltingTemperature(mini=20, maxi=86, location=None, boost=1.0) + ], + ) + problem.resolve_constraints() + problem.optimize()