def test_has_query_args_failure(self): headers = { 'Stubo-Request-Method' : 'GET', 'Stubo-Request-Query' : 'foo=bar' } assert_that(self.get_stubo_request(**headers), is_not(has_query_args(dict(foo=['tar']))))
def test_has_query_args(self): headers = { 'Stubo-Request-Method' : 'GET', 'Stubo-Request-Query' : 'foo=bar&foo=bar2' } assert_that(self.get_stubo_request(**headers), has_query_args(dict(foo=['bar', 'bar2'])))
def test_undefined(self): headers = {} assert_that(self.get_stubo_request(**headers), is_not(has_query_args(dict(foo=['tar']))))