Exemplo n.º 1
0
 def test_get_distance_square_differentLengthLists(self):
     node_a = [1, 1]
     node_b = [2, 2, 2]
     with self.assertRaises(AssertionError):
         mi.get_distance_square(node_a, node_b)
Exemplo n.º 2
0
 def test_get_distance_square_incorrectNodeBType(self):
     node_a = [2, 2]
     node_b = 2
     with self.assertRaises(TypeError):
         mi.get_distance_square(node_a, node_b)
Exemplo n.º 3
0
 def test_get_distance_square_zeroLengthList(self):
     node_a = []
     node_b = [0, 0]
     with self.assertRaises(AssertionError):
         mi.get_distance_square(node_a, node_b)
Exemplo n.º 4
0
 def test_get_distance_square_incorrectNodeAType(self):
     node_a = 2
     node_b = [0, 0]
     with self.assertRaises(TypeError):
         mi.get_distance_square(node_a, node_b)