Ejemplo n.º 1
0
 def test_with_global_context(self):
     self.assertIsNone(getdiagram())
     with Diagram(name=os.path.join(self.name, "with_global_context"),
                  show=False):
         self.assertIsNotNone(getdiagram())
     self.assertIsNone(getdiagram())
Ejemplo n.º 2
0
 def test_with_global_context(self):
     self.assertIsNone(getdiagram())
     with Diagram(name=self.name, show=False):
         self.assertIsNotNone(getdiagram())
     self.assertIsNone(getdiagram())