~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to tests/test_dotgraph.py

  • Committer: Alexander Belchenko
  • Date: 2006-06-15 10:33:19 UTC
  • mto: (0.6.1 shelf-win32)
  • mto: This revision was merged to the branch mainline in revision 414.
  • Revision ID: bialix@ukr.net-20060615103319-d66c46769262859d
fix import and usage of msvcrt to get user input on win32

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())