Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jpush-api-python-client
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
jpush-api-python-client
Commits
63947740
Commit
63947740
authored
May 12, 2016
by
fendouai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change the assert equal to assert true
parent
ec9e9d89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test_message.py
tests/push/test_message.py
+4
-4
No files found.
tests/push/test_message.py
View file @
63947740
...
...
@@ -45,14 +45,14 @@ class TestMessage(unittest.TestCase):
print
response
.
status_code
self
.
assertEqual
(
response
.
status_code
,
200
)
except
common
.
Unauthorized
,
e
:
self
.
assert
Equal
(
isinstance
(
e
,
common
.
Unauthorized
),
False
)
self
.
assert
False
(
isinstance
(
e
,
common
.
Unauthorized
)
)
raise
common
.
Unauthorized
(
"Unauthorized"
)
except
common
.
APIConnectionException
,
e
:
self
.
assert
Equal
(
isinstance
(
e
,
common
.
APIConnectionException
),
False
)
self
.
assert
False
(
isinstance
(
e
,
common
.
APIConnectionException
)
)
raise
common
.
APIConnectionException
(
"conn"
)
except
common
.
JPushFailure
,
e
:
self
.
assert
Equal
(
isinstance
(
e
,
common
.
JPushFailure
),
False
)
self
.
assert
False
(
isinstance
(
e
,
common
.
JPushFailure
)
)
print
"JPushFailure"
except
:
self
.
assertEqual
(
1
,
False
)
self
.
self
.
assertFalse
(
1
)
print
"Exception"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment