

def test_magnitude(self):
    'magnitude() test using known inputs'
    v = {
        'a': 1,
        'b': 2,
        'c': 5,
    }
    self.assertEqual(term_vec.l2_norm(self), math.sqrt(((1 + (2 ** 2)) + (5 ** 2))))

dataset/ETHPy150Open taherh/pysimsearch/pysimsearch/test/term_vec_test.py TermVecTest.test_magnitude/VarMisuse@41/63 `v`->`self`