Commit 17a3cea9 authored by Samuel GAIST's avatar Samuel GAIST

[test][core] Add push failure check for invalid assets

parent 67530307
......@@ -433,6 +433,17 @@ class AssetRemoteTest(AssetBaseTest):
exit_code, output = self.call("rm", "--remote", asset_name)
nose.tools.eq_(exit_code, 0, output)
@slow
@skip_disconnected
def test_fail_push_invalid(self):
asset_name = self.object_map["push_invalid"]
with nose.tools.assert_raises(RuntimeError) as assertion:
self.call("push", asset_name, user="errors")
exc = assertion.exception
text = exc.args[0]
nose.tools.assert_true(text.startswith("Invalid "))
@slow
@skip_disconnected
def test_fail_not_owner_push(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment