From a5f211e8acc3259f4b08971624928f710ac2b38a Mon Sep 17 00:00:00 2001 From: Jirka Vejrazka Date: Mon, 13 Jan 2014 23:32:34 +0100 Subject: [PATCH] improved tests a bit --- src/watson/tests.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/watson/tests.py b/src/watson/tests.py index 9c4b173..3c8eca4 100644 --- a/src/watson/tests.py +++ b/src/watson/tests.py @@ -193,9 +193,13 @@ class InternalsTest(SearchTestBase): self.assertEqual(watson.search("fooo2_selective").count(), 0) # Run the rebuild command. call_command("buildwatson", "WatsonTestModel1", verbosity=0) - # Test that the update is now applies. + # Test that the update is now applied to selected model. self.assertEqual(watson.search("fooo1_selective").count(), 1) self.assertEqual(watson.search("fooo2_selective").count(), 0) + call_command("buildwatson", "WatsonTestModel1", "WatsonTestModel2", verbosity=0) + # Test that the update is now applied to multiple selected models. + self.assertEqual(watson.search("fooo1_selective").count(), 1) + self.assertEqual(watson.search("fooo2_selective").count(), 1) def testBuildWatsonCommand(self): # Hack a change into the model using a bulk update, which doesn't send signals. @@ -206,7 +210,7 @@ class InternalsTest(SearchTestBase): self.assertEqual(watson.search("fooo2").count(), 0) # Run the rebuild command. call_command("buildwatson", verbosity=0) - # Test that the update is now applies. + # Test that the update is now applied. self.assertEqual(watson.search("fooo1").count(), 1) self.assertEqual(watson.search("fooo2").count(), 1)