forked from benoitc/couchapp
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#180] Test case for invalid design doc uri
And using the new style str formatter.
- Loading branch information
Showing
2 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from couchapp.clone_app import clone | ||
from couchapp.errors import AppError | ||
|
||
from mock import patch | ||
from nose.tools import raises | ||
|
||
|
||
@raises(AppError) | ||
def test_invalid_source(): | ||
''' | ||
Test case for clone(invalid_source) | ||
If a source uri do not contain ``_design/``, it's invalid. | ||
''' | ||
clone('http://foo.bar') |