def test_instantiate_for_read_an_search(self): """Testing if instantiating with default handle server works. """ # Try to create client instance for search without a search URL: with self.assertRaises(TypeError): inst = RESTHandleClient.instantiate_for_read_and_search( None, 'johndoe', 'passywordy')
def test_instantiate_wrong_search_url(self): inst = RESTHandleClient.instantiate_for_read_and_search( 'someurl', 'someuser', 'somepassword', reverselookup_baseuri='http://something_random_foo_bar') self.assertIsInstance(inst, RESTHandleClient)