def _test_cluster_vectors1(self):
        v = Vectors([[1], [2], [3]])

        assert str(Cluster(v, "Step", 2)) == str(v.cluster_step(1, 2))
        assert str(Cluster(v, "Limit",  [2])) == \
            str(v.cluster_limit(1,[2]))
    def _test_cluster_vectors1(self):
        v = Vectors([[1], [2], [3]])

        assert str(Cluster(v, "Step", 2)) == str(v.cluster_step(1, 2))
        assert str(Cluster(v, "Limit", [2])) == str(v.cluster_limit(1, [2]))
 def test_cluster_vectors(self):
     v = Vectors([[1, 2, 3], [1, 3, 1], [4, 5, 6]])
     assert str(Cluster(v, "Step", 1, 2)) == str(v.cluster_step(1, 2))
     assert str(Cluster(v, "Limit", 1, [2, 4, 6])) == \
         str(v.cluster_limit(1, [2, 4 ,6]))
 def test_cluster_vectors(self):
     v = Vectors([[1, 2, 3], [1, 3, 1], [4, 5, 6]])
     assert str(Cluster(v, "Step", 1, 2)) == str(v.cluster_step(1, 2))
     assert str(Cluster(v, "Limit", 1, [2, 4, 6])) == str(v.cluster_limit(1, [2, 4, 6]))