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