forked from martinkou/applepushnotification
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
executable file
·23 lines (18 loc) · 749 Bytes
/
test.py
File metadata and controls
executable file
·23 lines (18 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env python
# vim: set fileencoding=utf8 shiftwidth=4 tabstop=4 textwidth=80 foldmethod=marker :
# Copyright (c) 2011, Kou Man Tong. All rights reserved.
# For licensing, see LICENSE file included in the package.
import applepushnotification.tests, sys
from os.path import realpath as r, join as j, dirname as d
from optparse import OptionParser
if __name__ == "__main__":
parser = OptionParser(usage = \
u"""Runs applepushnotification unit test cases.
usage: %prog pem_file hex_token""")
options, args = parser.parse_args()
if len(args)< 2:
parser.print_help()
sys.exit(-1)
applepushnotification.tests.pem_file = j(d(__file__), args[0])
applepushnotification.tests.hex_token = args[1]
applepushnotification.tests.main()