Пример #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