| from ClickReaction.Reactions import BocRemoval |
| from tests import TestHelper |
|
|
|
|
| class BocRemovalTest(TestHelper.ReactionTestCase): |
| reactant_names = ["bocamine"] |
|
|
| def setUp(self): |
| self.set_reaction(BocRemoval) |
|
|
| def test_one_product(self): |
| reactants = [ |
| |
| (("CNC(OC(C)(C)C)=O", ), "CN"), |
| |
| (("CC(OC(NC1=CC=CC=C1)=O)(C)C", ), "NC1=CC=CC=C1"), |
| |
| (("CN(C)C(OC(C)(C)C)=O", ), "CNC"), |
| |
| (("CC(OC(N(C1=CC=CC=C1)C2=CC=CC=C2)=O)(C)C", ), "C1(NC2=CC=CC=C2)=CC=CC=C1"), |
| |
| (("CN(C(OC(C)(C)C)=O)C1=CC=CC=C1", ), "CNC1=CC=CC=C1"), |
| ] |
|
|
| self._test_one_product(reactants, self.reactant_names) |
|
|
| |
| def test_no_product(self): |
| reactants = [ |
| |
| ("CNC(OCC1C(C=CC=C2)=C2C3=C1C=CC=C3)=O", ), |
|
|
| |
| ("CNCC1=CC=CC=C1", ), |
|
|
| |
| ("CNC",), |
|
|
| |
| ("CN(C(OC)=O)C", ), |
|
|
| |
| ("CN(C(NC)=O)C", ), |
| ] |
|
|
| self._test_no_product(reactants, self.reactant_names) |
|
|