Skip to content

Commit

Permalink
ticket:16: Some more tests were added
Browse files Browse the repository at this point in the history
  • Loading branch information
tilarids committed Jun 23, 2009
1 parent 9a1dd3b commit 8921c4e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions django_couchdb/djcouchtest/core/tests/test_queries.py
Expand Up @@ -83,4 +83,17 @@ def test_update_query(self):
theb2 = Boo2.objects.get(pk=b2.id)
assert theb2.flag is False, theb2.flag

b1 = Boo(title="1", slug="1")
b1.save()
b2 = Boo(title="2", slug="2")
b2.save()
f1 = Foo(boo=b1)
f1.save()
f1.boo=b2
f1.save()
assert_equal(f1.boo, b2)
assert_equal(f1.boo.title, "2")




0 comments on commit 8921c4e

Please sign in to comment.