Exemplo n.º 1
0
 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'])))) 
Exemplo n.º 2
0
 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'])))  
Exemplo n.º 3
0
 def test_undefined(self):
     headers = {}
     assert_that(self.get_stubo_request(**headers), 
                 is_not(has_query_args(dict(foo=['tar']))))