Rev 3: Test _create_png in http://bzr.arbash-meinel.com/branches/bzr/extra/moin_graphviz

John Arbash Meinel john at arbash-meinel.com
Tue Apr 3 00:17:26 BST 2007


At http://bzr.arbash-meinel.com/branches/bzr/extra/moin_graphviz

------------------------------------------------------------
revno: 3
revision-id: john at arbash-meinel.com-20070402231723-tdp4och9asvhzsc5
parent: john at arbash-meinel.com-20070402230756-hdm8969fymtxsn2z
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: moin_graphviz
timestamp: Mon 2007-04-02 18:17:23 -0500
message:
  Test _create_png
modified:
  test_graphviz.py               test_graphviz.py-20070402223544-kez8ooyxqh1wx5w0-1
-------------- next part --------------
=== modified file 'test_graphviz.py'
--- a/test_graphviz.py	2007-04-02 23:07:56 +0000
+++ b/test_graphviz.py	2007-04-02 23:17:23 +0000
@@ -128,3 +128,10 @@
             self.assertRaises(OSError, p._spawn_dot)
         finally:
             graphviz.Parser._dot = orig_val
+
+    def test__create_png_pass_through(self):
+        p = ParserWithCommand('raw_text', self.get_request())
+        p._command = ['cat']
+
+        # _create_png should pass the raw text to the spawned command
+        self.assertEqual('raw_text', p._create_png())



More information about the bazaar-commits mailing list