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