def test_magnitude(self):
        v = {'a':1, 'b':2, 'c':5}
        
        self.assertEqual(term_vec.l2_norm(v), math.sqrt(1 + 2**2 + 5**2))
Retrieve the root api resource.
dataset/ETHPy150Open taherh/pysimsearch/pysimsearch/test/term_vec_test.py/TermVecTest.test_magnitude--crossover with--dataset/ETHPy150Open reviewboard/rbtools/rbtools/api/transport/__init__.py/Transport.get_root