Skip to content

Commit

Permalink
considated 'exists' tests, and fixed the var that was being used. Who…
Browse files Browse the repository at this point in the history
…ops. :)

Signed-off-by: Nick Campbell <ncampbell@siteworx.com>
  • Loading branch information
ncb000gt committed Mar 18, 2010
1 parent c39c412 commit 0120edf
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/test_document.py
Expand Up @@ -22,13 +22,11 @@ def setup_module(module):
{'type':'red-lectroid', 'name':"John Small Berries"},
]

def test_db_exists_false():
dbf = Database('http://localhost:5984/this_db_should_likely_not_exist')
assert db.exists() == False

def test_db_exists_true():
def test_db_exists():
dbf = Database('http://localhost:5984/couchquery_unittest')
assert db.exists() == True
assert dbf.exists() == True
dbf = Database('http://localhost:5984/this_db_should_likely_not_exist')
assert dbf.exists() == False

def test_simple_add():
for doc in lectroids:
Expand Down

0 comments on commit 0120edf

Please sign in to comment.