Esempio n. 1
0
 def test_find_stub_degree_1(self):
     stub_degree, stubs = _find_stub_degree(self.branch, 1)
     self.assertEqual(stub_degree, 0)
     self.assertEqual(stubs, set())
Esempio n. 2
0
 def test_find_stub_degree_5(self):
     stub_degree, stubs = _find_stub_degree(self.branch, 5)
     self.assertEqual(stub_degree, 1)
     self.assertEqual(stubs, {103})
Esempio n. 3
0
 def test_find_stub_degree_7(self):
     stub_degree, stubs = _find_stub_degree(self.branch, 7)
     self.assertEqual(stub_degree, 2)
     self.assertEqual(stubs, {107, 108})