~ubuntu-branches/ubuntu/oneiric/bzrtools/oneiric

« back to all changes in this revision

Viewing changes to tests/test_dotgraph.py

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2008-05-12 20:25:35 UTC
  • mfrom: (1.2.2 upstream) (4.1.34 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080512202535-y92gjpczwr98htxe
New upstream release.

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