Esempio n. 1
0
 def they_can_be_cleared(self):
     clear_expectations()
     assert_raises(AttributeError, lambda: expect("potato").is_a_potato)
Esempio n. 2
0
 def teardown(self):
     clear_expectations()
Esempio n. 3
0
 def they_can_be_cleared(self):
     clear_expectations()
     assert_raises(AttributeError, lambda: expect('potato').is_a_potato)
Esempio n. 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()