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