Skip to content

Commit

Permalink
Standard set syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
kirklg committed Mar 20, 2016
1 parent 851428d commit f983532
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_use.py
Expand Up @@ -158,22 +158,22 @@ def test_protocols(self):

def test_streams(self):
if self.on_unix:
assert self.tcp_service.streams == {'tcp', 'unix_stream'}
assert self.tcp_service.streams == set(('tcp', 'unix_stream',))
else:
assert self.tcp_service.streams == {'tcp'}
assert self.tcp_service.streams == set(('tcp',))

def test_datagrams(self):
if self.on_unix:
assert self.tcp_service.datagrams == {'udp', 'unix_dgram'}
assert self.tcp_service.datagrams == set(('udp', 'unix_dgram',))
else:
assert self.tcp_service.datagrams == {'udp'}
assert self.tcp_service.datagrams == set(('udp',))

def test_inet(self):
assert self.tcp_service.inet == {'tcp', 'udp'}
assert self.tcp_service.inet == set(('tcp', 'udp',))

def test_unix(self):
if self.on_unix:
assert self.tcp_service.unix == {'unix_stream', 'unix_dgram'}
assert self.tcp_service.unix == set(('unix_stream', 'unix_dgram',))
else:
assert self.tcp_service.unix == set()

Expand Down

0 comments on commit f983532

Please sign in to comment.