Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
eeac673d
Commit
eeac673d
authored
Apr 06, 2011
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove test__dns.py
parent
9a06407f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
40 deletions
+0
-40
greentest/test__dns.py
greentest/test__dns.py
+0
-40
No files found.
greentest/test__dns.py
deleted
100644 → 0
View file @
9a06407f
#!/usr/bin/python
import
greentest
from
gevent
import
dns
from
gevent
import
core
from
gevent.dns
import
DNSError
funcs
=
[
dns
.
resolve_ipv4
,
dns
.
resolve_ipv6
,
dns
.
resolve_reverse
,
dns
.
resolve_reverse_ipv6
]
class
TestNoSwitch
(
greentest
.
TestCase
):
switch_expected
=
False
def
test_type_error
(
self
):
for
func
in
funcs
:
self
.
assertRaises
(
TypeError
,
func
,
None
)
self
.
assertRaises
(
TypeError
,
func
,
15
)
self
.
assertRaises
(
TypeError
,
func
,
object
())
def
test_dns_err_to_string
(
self
):
for
err
in
range
(
-
100
,
100
):
result
=
core
.
dns_err_to_string
(
err
)
assert
result
,
result
assert
isinstance
(
result
,
str
)
class
TestSwitch
(
greentest
.
TestCase
):
switch_expected
=
True
def
test_empty_string
(
self
):
self
.
assertRaises
(
DNSError
,
dns
.
resolve_ipv4
,
''
)
self
.
assertRaises
(
DNSError
,
dns
.
resolve_ipv6
,
''
)
self
.
assertRaises
(
DNSError
,
dns
.
resolve_reverse
,
''
)
self
.
assertRaises
(
DNSError
,
dns
.
resolve_reverse_ipv6
,
''
)
if
__name__
==
'__main__'
:
greentest
.
main
()
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