def setUp(self):
        # switch the backend of matplotlib, so plots can be tested
        self.backend = matplotlib.rcParams['backend']
        matplotlib.pyplot.switch_backend("Agg")

        # create a test instance
        self.antimony = '''
        model myModel
          S1 -> S2; k1*S1;
          S1 = 10; S2 = 0;
          k1 = 1;
        end
        '''
        self.phrasedml = '''
          model1 = model "myModel"
          sim1 = simulate uniform(0, 5, 100)
          task1 = run sim1 on model1
          plot "Figure 1" time vs S1, S2
        '''
        self.tep = tephrasedml.experiment(self.antimony, self.phrasedml)

        self.a1 = """
        model m1()
            J0: S1 -> S2; k1*S1;
            S1 = 10.0; S2=0.0;
            k1 = 0.1;
        end
        """
        self.a2 = """
 def test_printpython(self):
     """Test printpython."""
     exp = tephrasedml.experiment(self.antimony, self.phrasedml)
     exp.printPython(self.phrasedml)
 def test_createpython(self):
     """Test createpython."""
     exp = tephrasedml.experiment(self.antimony, self.phrasedml)
     pstr = exp._toPython(self.phrasedml)
     self.assertIsNotNone(pstr)
 def test_execute(self):
     """Test execute."""
     exp = tephrasedml.experiment(self.antimony, self.phrasedml)
     exp.execute(self.phrasedml)