def test_features(self): # Assert unique list of vector keys. v = vector.features(vectors=[{"cat":1}, {"dog":1}]) self.assertEqual(sorted(v), ["cat", "dog"]) print("pattern.vector.features()")
def test_features(self): # Assert unique list of vector keys. v = vector.features(vectors=[{"cat": 1}, {"dog": 1}]) self.assertEqual(sorted(v), ["cat", "dog"]) print "pattern.vector.features()"