Add curve test
This commit is contained in:
@@ -2011,6 +2011,8 @@ class TestApi:
|
||||
|
||||
assert is_curve(p, 'c0') == False
|
||||
|
||||
assert get_curve(p, 'c0') == {}
|
||||
|
||||
add_curve(p, ChangeSet({'id' : 'c0', 'c_type' : CURVE_TYPE_PUMP, 'coords': [{'x': 1.0, 'y': 2.0}, {'x': 2.0, 'y': 1.0}]}))
|
||||
|
||||
assert is_curve(p, 'c0')
|
||||
@@ -2047,6 +2049,8 @@ class TestApi:
|
||||
|
||||
assert is_curve(p, 'c0') == False
|
||||
|
||||
assert get_curve(p, 'c0') == {}
|
||||
|
||||
self.leave(p)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user