コード例 #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())
コード例 #2
0
ファイル: test_diagram.py プロジェクト: ralvares/diagrams-1
 def test_with_global_context(self):
     self.assertIsNone(getdiagram())
     with Diagram(name=self.name, show=False):
         self.assertIsNotNone(getdiagram())
     self.assertIsNone(getdiagram())