File: test_dotgraph.py

package info (click to toggle)
bzrtools 2.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 740 kB
  • ctags: 656
  • sloc: python: 4,299; sh: 13; makefile: 10
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())