def METHOD_NAME(self):
    matrix = Matrix()
    matrix.setByScaleFactor(0.5)
    numpy.testing.assert_array_almost_equal(matrix.getData(), numpy.array([[0.5,0,0,0],[0,0.5,0,0],[0,0,0.5,0],[0,0,0,1]]))
    assert matrix.getScale() == Vector(0.5, 0.5, 0.5)