mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-12 12:30:16 +08:00
Test union of differing geometric transforms
This commit is contained in:
@@ -208,6 +208,12 @@ def test_union():
|
||||
assert tform.__class__ == ProjectiveTransform
|
||||
|
||||
|
||||
def test_union_differing_types():
|
||||
tform1 = SimilarityTransform()
|
||||
tform2 = PolynomialTransform()
|
||||
assert_raises(TypeError, tform1.__add__, tform2)
|
||||
|
||||
|
||||
def test_geometric_tform():
|
||||
tform = GeometricTransform()
|
||||
assert_raises(NotImplementedError, tform, 0)
|
||||
|
||||
Reference in New Issue
Block a user