Skip to content
Browse files

Added a test for db.where.

  • Loading branch information...
1 parent 67f1c18 commit cfedd351d7c7b8dddd7a7b4c53fdb743d8f61ee5 @anandology anandology committed
Showing with 8 additions and 0 deletions.
  1. +8 −0 test/db.py
View
8 test/db.py
@@ -116,6 +116,14 @@ def t(active):
def test_insert_default_values(self):
db = webtest.setup_database(self.dbname)
db.insert("person")
+
+ def test_where(self):
+ db = webtest.setup_database(self.dbname)
+ db.insert("person", False, name="Foo")
+ d = db.where("person", name="Foo").list()
+ assert len(d) == 1
+ d = db.where("person").list()
+ assert len(d) == 1
class PostgresTest(DBTest):
dbname = "postgres"

0 comments on commit cfedd35

Please sign in to comment.
Something went wrong with that request. Please try again.