Repository :
http://git.fedorahosted.org/cgit/copr.git
On branch : master
---------------------------------------------------------------
commit 37a1563b7faff1c12edcf50da4b2f599b11697ef
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Mon Sep 30 18:57:14 2013 +0200
fix failing test test_fail_on_missing_dash
_______________ TestCoprRepoGeneration.test_fail_on_missing_dash _______________
self = <test_coprs_ns.test_coprs_general.TestCoprRepoGeneration object at
0x4cdcd90>
def test_fail_on_missing_dash(self):
r = self.tc.get('/coprs/reponamewithoutdash/repo/')
assert r.status_code == 404
assert 'Bad repository name' in r.data
E
assert 'Bad repository name' in '<!doctype
html>\n<html>\n<head>\n <title>Not Found</title>\n <link
rel=stylesheet type=text/css href="/static/copr.... <div
class="page-inner">\n \n \n Copr with name repo does not exist.\n
\n\n </div>\n</div>\n</body>\n</html>'
E + where '<!doctype html>\n<html>\n<head>\n
<title>Not Found</title>\n <link rel=stylesheet type=text/css
href="/static/copr.... <div class="page-inner">\n \n \n Copr
with name repo does not exist.\n \n\n
</div>\n</div>\n</body>\n</html>' = <Response 830 bytes
[404 NOT FOUND]>.data
tests/test_views/test_coprs_ns/test_coprs_general.py:393: AssertionError
---------------------------------------------------------------
.../test_views/test_coprs_ns/test_coprs_general.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/coprs_frontend/tests/test_views/test_coprs_ns/test_coprs_general.py
b/coprs_frontend/tests/test_views/test_coprs_ns/test_coprs_general.py
index 57f5c26..499f892 100644
--- a/coprs_frontend/tests/test_views/test_coprs_ns/test_coprs_general.py
+++ b/coprs_frontend/tests/test_views/test_coprs_ns/test_coprs_general.py
@@ -390,7 +390,7 @@ class TestCoprRepoGeneration(CoprsTestCase):
def test_fail_on_missing_dash(self):
r = self.tc.get('/coprs/reponamewithoutdash/repo/')
assert r.status_code == 404
- assert 'Bad repository name' in r.data
+ assert 'Copr with name repo does not exist' in r.data
def test_fail_on_nonexistent_copr(self):
r = self.tc.get('/coprs/bogus-nonexistent-repo/repo/')