示例#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')))
示例#2
0
 def test_undefined_default(self):
     headers = {}
     assert_that(self.get_stubo_request(**headers), 
                 has_method('POST'))    
示例#3
0
 def test_has_method_match2(self):
     headers = {'Stubo-Request-Method' : 'GET'}
     assert_that(self.get_stubo_request(**headers), 
                 has_method('GET'))