示例#1
0
 def test_register(self):
     expect(expect.matcher('not_eq')) == NotEqual
     expect(expect.matcher('ne')) == NotEqual
     expect(expect.matcher('__ne__')) == NotEqual
示例#2
0
 def test_register(self):
     expect(expect.matcher('equal')) == Identical
示例#3
0
 def test_register(self):
     expect(expect.matcher('string')) == String
示例#4
0
 def test_register(self):
     expect(expect.matcher('float')) == Float
示例#5
0
 def test_register(self):
     expect(expect.matcher('not_match')) == NotMatch
示例#6
0
 def test_register(self):
     expect(expect.matcher('contain')) == Contain
示例#7
0
 def test_register(self):
     expect(expect.matcher('change')) == Change
示例#8
0
 def test_register(self):
     expect(expect.matcher('empty')) == Empty
示例#9
0
 def test_register(self):
     expect(expect.matcher('truthy')) == Truthy
示例#10
0
 def test_register(self):
     expect(expect.matcher('falsy')) == Falsy
示例#11
0
 def test_register(self):
     expect(expect.matcher('respond_to')) == RespondTo
示例#12
0
 def test_register(self):
     expect(expect.matcher('called_once_with')) == CalledOnceWith
示例#13
0
 def test_register(self):
     expect(expect.matcher('not_contain')) == NotContain
示例#14
0
 def test_register(self):
     expect(expect.matcher('falsy')) == Falsy
示例#15
0
 def test_register(self):
     expect(expect.matcher("not_equal")) == NotIdentical
示例#16
0
 def test_it_can_return_matcher(self):
     expect.register('test_matcher', TestMatcher)
     matcher = expect.matcher('test_matcher')
     expect(matcher) == TestMatcher
示例#17
0
 def test_register(self):
     expect(expect.matcher('above')) == Above
示例#18
0
 def test_register(self):
     expect(expect.matcher('called')) == Called
示例#19
0
 def test_register(self):
     expect(expect.matcher('below')) == Below
示例#20
0
 def test_register(self):
     expect(expect.matcher('eq')) == Equal
     expect(expect.matcher('__eq__')) == Equal
示例#21
0
 def test_register(self):
     expect(expect.matcher('within')) == Within
示例#22
0
 def test_register(self):
     expect(expect.matcher('none')) == Non
示例#23
0
 def test_register(self):
     expect(expect.matcher('throw')) == ExceptionMatcher
示例#24
0
 def test_register(self):
     expect(expect.matcher('integer')) == Integer
示例#25
0
 def test_register(self):
     expect(expect.matcher('throw_exactly')) == ExactExceptionMatcher
示例#26
0
 def test_register(self):
     expect(expect.matcher('eq')) == Equal
     expect(expect.matcher('__eq__')) == Equal
示例#27
0
 def test_register(self):
     expect(expect.matcher('instanceof')) == Instanceof
示例#28
0
 def test_register(self):
     expect(expect.matcher('not_match')) == NotMatch
示例#29
0
 def test_register(self):
     expect(expect.matcher('above')) == Above
示例#30
0
 def test_register(self):
     expect(expect.matcher('truthy')) == Truthy
示例#31
0
 def test_register(self):
     expect(expect.matcher('below')) == Below
示例#32
0
 def test_register(self):
     expect(expect.matcher('match')) == Match
示例#33
0
 def test_register(self):
     expect(expect.matcher('within')) == Within
示例#34
0
 def test_register(self):
     expect(expect.matcher('length')) == Length
示例#35
0
 def test_register(self):
     expect(expect.matcher('ever_called_with')) == EverCalledWith
     expect(expect.matcher('any_call')) == EverCalledWith
示例#36
0
 def test_register(self):
     expect(expect.matcher('not_empty')) == NotEmpty
示例#37
0
 def test_register(self):
     expect(expect.matcher('list')) == List
示例#38
0
 def test_register(self):
     expect(expect.matcher('match')) == Match
示例#39
0
 def test_register(self):
     expect(expect.matcher('dict')) == Dict
示例#40
0
 def test_register(self):
     expect(expect.matcher('instanceof')) == Instanceof
示例#41
0
 def test_register(self):
     expect(expect.matcher('tuple')) == Tuple
示例#42
0
 def test_register(self):
     expect(expect.matcher('not_eq')) == NotEqual
     expect(expect.matcher('ne')) == NotEqual
     expect(expect.matcher('__ne__')) == NotEqual
示例#43
0
 def test_register(self):
     expect(expect.matcher('not_contain')) == NotContain