Fix test for fix to issue 232

master
Desai, Kartikey H 2019-01-11 09:40:57 -05:00
parent 6e28cc8fe6
commit 5dea09547e
1 changed files with 6 additions and 6 deletions

View File

@ -443,14 +443,14 @@ def test_filesystem_sink_attempt_stix_file_overwrite(fs_sink, fs_source):
assert "Georgey" in camp8_r.aliases
# now attempt to overwrite the same file
camp9 = stix2.v20.Campaign(
name="George Washington",
objective="Create an awesome country",
aliases=["Georgey"],
)
# camp9 = stix2.v20.Campaign(
# name="George Washington",
# objective="Create an awesome country",
# aliases=["Georgey"],
# )
with pytest.raises(DataSourceError) as excinfo:
fs_sink.add(camp9)
fs_sink.add(camp8)
assert "Attempted to overwrite file" in str(excinfo)
os.remove(filepath)