From f0eb8946d3c5d3925d5fca2d0359be7abc53ede6 Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Tue, 22 Feb 2011 17:21:07 +0100 Subject: [PATCH] - also test _link without "project" attribute --- tests/setlinkrev_fixtures/noproject_link | 1 + tests/test_setlinkrev.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 tests/setlinkrev_fixtures/noproject_link diff --git a/tests/setlinkrev_fixtures/noproject_link b/tests/setlinkrev_fixtures/noproject_link new file mode 100644 index 00000000..9f45c4f7 --- /dev/null +++ b/tests/setlinkrev_fixtures/noproject_link @@ -0,0 +1 @@ + diff --git a/tests/test_setlinkrev.py b/tests/test_setlinkrev.py index 1bf6e8f8..a1eaed99 100644 --- a/tests/test_setlinkrev.py +++ b/tests/test_setlinkrev.py @@ -30,10 +30,10 @@ class TestSetLinkRev(OscTestCase): """a simple set_link_rev call with revision""" osc.core.set_link_rev('http://localhost', 'osctest', 'simple', '42') - @GET('http://localhost/source/osctest/simple/_link', file='simple_link') - @GET('http://localhost/source/srcprj/srcpkg?rev=latest', file='expandedsrc_filesremote') + @GET('http://localhost/source/osctest/simple/_link', file='noproject_link') + @GET('http://localhost/source/osctest/srcpkg?rev=latest', file='expandedsrc_filesremote') @PUT('http://localhost/source/osctest/simple/_link', - exp='', text='dummytext') + exp='', text='dummytext') def test_expandedsrc(self): """expand src package""" osc.core.set_link_rev('http://localhost', 'osctest', 'simple', xsrcmd5=True)