Beispiel #1
0
 def a_test_with_metadata(self):
     expect(True).to.be_true()
Beispiel #2
0
 def causing_a_traceback(self):
     expect(Nope).to.be_none()  # NOQA
Beispiel #3
0
 def a_skipped_test(self):
     expect('trace').not_to.equal('boom')
Beispiel #4
0
 def an_incomplete_test(self):
     expect('this should never be called').to.equal(None)
Beispiel #5
0
 def also_should_be_able_to_access_boom(self):
     expect(self.boom).to.be_true()
Beispiel #6
0
 def this_is_a_test(self):
     """My example doc"""
     require('bam').to.equal('bam')
     expect('bam').to.equal('bam')
 def also_should_be_able_to_access_boom(self):
     expect(self.boom).to.be_true()
Beispiel #8
0
 def an_incomplete_test(self):
     expect('this should never be called').to.equal(None)
Beispiel #9
0
 def multi_line_expect(self):
     expect((
         'this '
         'is a test'
     )).to.equal('this is a test')
Beispiel #10
0
 def sample_data(self, sample):
     expect(sample).to.equal([1])
Beispiel #11
0
 def causes_multi_line_error(self):
     expect(TestObj()).to.be_none()
Beispiel #12
0
 def causing_a_traceback(self):
     expect(Nope).to.be_none()  # NOQA
Beispiel #13
0
 def a_test_with_metadata(self):
     expect(True).to.be_true()
Beispiel #14
0
 def causes_multi_line_error(self):
     expect(TestObj()).to.be_none()
 def this_is_a_test(self):
     """My example doc"""
     expect('bam').to.equal('bam')
Beispiel #16
0
 def sample_data(self, sample):
     expect(sample).to.equal([1])
Beispiel #17
0
 def a_skipped_test(self):
     expect('trace').not_to.equal('boom')