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