File: test_dotgraph.py

package info (click to toggle)
bzrtools 2.1.0-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 648 kB
  • ctags: 564
  • sloc: python: 4,325; sh: 11; makefile: 9
file content (10 lines) | stat: -rw-r--r-- 319 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
from unittest import TestCase

from bzrlib.plugins.bzrtools import dotgraph

class TestNode(TestCase):

    def test_define_escapes_backslash(self):
        node = dotgraph.Node('AB', message=r'Slash\me')
        self.assertEqual(r'AB[shape="box" tooltip="Slash\\me" href="#"]',
                         node.define())