File tree Expand file tree Collapse file tree 1 file changed +0
-37
lines changed Expand file tree Collapse file tree 1 file changed +0
-37
lines changed Original file line number Diff line number Diff line change 1
- import contextlib
2
1
import requests
3
2
import github3
4
- import expecter
5
3
import json
6
4
import sys
7
5
from mock import patch
@@ -22,41 +20,6 @@ def path(name, mode='r'):
22
20
return open ('tests/json/{0}' .format (name ), mode )
23
21
24
22
25
- class CustomExpecter (expecter .expect ):
26
- def is_not_None (self ):
27
- assert self ._actual is not None , (
28
- 'Expected anything but None but got it.'
29
- )
30
-
31
- def is_None (self ):
32
- assert self ._actual is None , (
33
- 'Expected None but got %s' % repr (self ._actual ) # nopep8
34
- )
35
-
36
- def is_True (self ):
37
- assert self ._actual is True , (
38
- 'Expected True but got %s' % repr (self ._actual ) # nopep8
39
- )
40
-
41
- def is_False (self ):
42
- assert self ._actual is False , (
43
- 'Expected False but got %s' % repr (self ._actual ) # nopep8
44
- )
45
-
46
- def is_in (self , iterable ):
47
- assert self ._actual in iterable , (
48
- "Expected %s in %s but it wasn't" % (
49
- repr (self ._actual ), repr (iterable )
50
- )
51
- )
52
-
53
- @classmethod
54
- def githuberror (cls ):
55
- return cls .raises (github3 .GitHubError )
56
-
57
- expect = CustomExpecter
58
-
59
-
60
23
class BaseCase (TestCase ):
61
24
github_url = 'https://api.github.com/'
62
25
You can’t perform that action at this time.
0 commit comments