Allow removing a csp estimate from a task order

This commit is contained in:
Patrick Smith
2019-01-22 13:05:04 -05:00
parent c155de0e84
commit 672c562323
2 changed files with 10 additions and 0 deletions

View File

@@ -58,3 +58,11 @@ class TestCSPEstimate:
to = TaskOrder()
with pytest.raises(TypeError):
to.csp_estimate = "invalid"
def test_removing_estimate(self):
attachment = Attachment(filename="sample.pdf", object_name="sample")
to = TaskOrder(csp_estimate=attachment)
assert to.csp_estimate is not None
to.csp_estimate = ""
assert to.csp_estimate is None