~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/test_dotgraph.py

  • Committer: Michael Ellerman
  • Date: 2005-10-19 10:20:01 UTC
  • mto: (0.3.1 shelf-dev) (325.1.2 bzrtools)
  • mto: This revision was merged to the branch mainline in revision 246.
  • Revision ID: michael@ellerman.id.au-20051019102001-e646913281320323
Add __init__.py, put cmd_shelve/unshelve in there.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
from unittest import TestCase
2
 
 
3
 
from bzrlib.plugins.bzrtools import dotgraph
4
 
 
5
 
class TestNode(TestCase):
6
 
 
7
 
    def test_define_escapes_backslash(self):
8
 
        node = dotgraph.Node('AB', message=r'Slash\me')
9
 
        self.assertEqual(r'AB[shape="box" tooltip="Slash\\me" href="#"]',
10
 
                         node.define())