예제 #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