示例#1
0
 def they_can_be_cleared(self):
     clear_expectations()
     assert_raises(AttributeError, lambda: expect("potato").is_a_potato)
示例#2
0
 def teardown(self):
     clear_expectations()
示例#3
0
 def they_can_be_cleared(self):
     clear_expectations()
     assert_raises(AttributeError, lambda: expect('potato').is_a_potato)
示例#4
0
 def teardown(self):
     clear_expectations()
 def they_can_be_cleared():
     clear_expectations()
     with pytest.raises(AttributeError):
         expect('potato').is_a_potato
 def teardown():
     clear_expectations()