fixed test to reflect correct block_for_auth API
authorFredrik Wendt <fredrik@wendt.se>
Tue, 8 Jun 2010 20:58:29 +0000 (21:58 +0100)
committerFredrik Wendt <fredrik@wendt.se>
Tue, 8 Jun 2010 20:58:29 +0000 (21:58 +0100)
package/test/integration/test_linkedinapi.py

index d2d7887..0547300 100644 (file)
@@ -55,7 +55,7 @@ class IntegrationTestLinkedInApi(unittest.TestCase):
         
         assert self.need_auth_called
         assert self.block_for_auth_called
-        assert "linkedin.com" in self.block_for_auth_url
+        assert self.block_for_auth_show_input_field
         assert authenticate_threw_exception
 
 
@@ -63,9 +63,9 @@ class IntegrationTestLinkedInApi(unittest.TestCase):
         self.need_auth_called = True
 
 
-    def _block_for_auth(self, url):
+    def _block_for_auth(self, show_input_field):
         self.block_for_auth_called = True
-        self.block_for_auth_url = url
+        self.block_for_auth_show_input_field = show_input_field
         return self.verifier