<commit_before>#!/usr/bin/env python3
# Run `python3 -m unittest utils.lib.rr_graph.tests.test_graph`
import unittest

from .. import graph, P, Size
from ..graph import (Pin, PinClass, PinClassDirection, Block, BlockGrid, BlockType, Segment,
    Switch, SwitchType, RoutingGraph, RoutingGraphPrinter, RoutingNodeType)

import lxml.etree as ET

class TestGraph(unittest.TestCase):

    def test_parse_net(self):
        # Fully specified
        self.assertEqual(
            ('a', 'b', [0]),
            graph.parse_net('a.b[0]')<commit_msg>pytest with dependency and call for travis.<commit_after>#!/usr/bin/env python3
# Run `python3 -m unittest lib.rr_graph.tests.test_graph`
import unittest

from lib.rr_graph import graph, P, Size
from lib.rr_graph.graph import (Pin, PinClass, PinClassDirection, Block, BlockGrid, BlockType, Segment,
    Switch, SwitchType, RoutingGraph, RoutingGraphPrinter, RoutingNodeType)

import lxml.etree as ET

class TestGraph(unittest.TestCase):

    def test_parse_net(self):
        # Fully specified
        self.assertEqual(
            ('a', 'b', [0]),
            graph.parse_net('a.b[0]')
{'fraction_non_alphanumeric': 0.11446317657497782, 'fraction_numerical': 0.00709849157054126, 'mean_word_length': 3.7796610169491527, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3582613', 'n_tokens_mistral': 366, 'n_tokens_neox': 363, 'n_words': 94}