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