The designateclient.tests.base
Module¶
-
class
designateclient.tests.base.
APITestCase
(*args, **kwds)[source]¶ Bases:
designateclient.tests.base.TestCase
Test case base class for all unit tests.
-
TEST_URL
= 'http://127.0.0.1:9001/'¶
-
VERSION
= None¶
-
assertQueryStringContains
(**kwargs)[source]¶ Verify the query string contains the expected parameters.
This method is used to verify that the query string for the most recent request made contains all the parameters provided as
kwargs
, and that the value of each parameter contains the value for the kwarg. If the value for the kwarg is an empty string (‘’), then all that’s verified is that the parameter is present.
-
assertQueryStringIs
(qs='')[source]¶ Verify the QueryString matches what is expected.
The qs parameter should be of the format ‘foo=bar&abc=xyz’
-