/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to tests/test_linegraph.py

  • Committer: David Planella
  • Date: 2011-03-06 08:24:07 UTC
  • mfrom: (718 trunk)
  • mto: This revision was merged to the branch mainline in revision 719.
  • Revision ID: david.planella@ubuntu.com-20110306082407-y9zwkjje5oue9egw
Added preliminary internationalization support. Merged from trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Test the linegraph functionality."""
18
18
 
19
 
import os
20
 
 
21
 
import gtk
22
 
 
23
19
from bzrlib import (
24
 
        graph,
 
20
    graph,
25
21
    tests,
26
22
    )
27
23
 
29
25
 
30
26
 
31
27
class TestLinegraph(tests.TestCase):
32
 
        def get_graph(self, dict):
33
 
                return graph.Graph(graph.DictParentsProvider(dict))
34
 
 
35
 
        def test_simple(self):
36
 
                lg = linegraph(self.get_graph({"A": ("B", "C"), "B": ()}), ["A"])
37
 
                self.assertEquals(lg,  
 
28
 
 
29
    def get_graph(self, dict):
 
30
        return graph.Graph(graph.DictParentsProvider(dict))
 
31
 
 
32
    def test_simple(self):
 
33
        lg = linegraph(self.get_graph({"A": ("B", "C"), "B": ()}), ["A"])
 
34
        self.assertEquals(lg,  
38
35
            ([
39
36
               ['A', (0, 0), [(0, 0, 0)], ['B'], [], (2,)],
40
37
               ['B', (0, 0), [], (), ['A'], (1,)]