Exemplo n.º 1
0
 def test_has_method_failure(self):
     headers = {'Stubo-Request-Method' : 'POST'}
     assert_that(self.get_stubo_request(**headers), 
                 is_not(has_method('GET')))
Exemplo n.º 2
0
 def test_undefined_default(self):
     headers = {}
     assert_that(self.get_stubo_request(**headers), 
                 has_method('POST'))    
Exemplo n.º 3
0
 def test_has_method_match2(self):
     headers = {'Stubo-Request-Method' : 'GET'}
     assert_that(self.get_stubo_request(**headers), 
                 has_method('GET'))