mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-12 05:02:32 +01:00
Oops...should run the tests before submitting new assertions :)
This commit is contained in:
parent
2227f5caae
commit
df66715089
@ -373,7 +373,7 @@ def join(channel, key=None, prefix=''):
|
|||||||
if key is None:
|
if key is None:
|
||||||
return IrcMsg(prefix=prefix, command='JOIN', args=(channel,))
|
return IrcMsg(prefix=prefix, command='JOIN', args=(channel,))
|
||||||
else:
|
else:
|
||||||
assert key.translate(string.ascii, string.ascii[128:]) == '' and \
|
assert key.translate(string.ascii, string.ascii[128:]) == key and \
|
||||||
'\x00' not in key and \
|
'\x00' not in key and \
|
||||||
'\r' not in key and \
|
'\r' not in key and \
|
||||||
'\n' not in key and \
|
'\n' not in key and \
|
||||||
@ -395,7 +395,7 @@ def joins(channels, keys=None, prefix=''):
|
|||||||
args=(','.join(channels),))
|
args=(','.join(channels),))
|
||||||
else:
|
else:
|
||||||
for key in keys:
|
for key in keys:
|
||||||
assert key.translate(string.ascii, string.ascii[128:]) == '' and \
|
assert key.translate(string.ascii, string.ascii[128:]) == key and \
|
||||||
'\x00' not in key and \
|
'\x00' not in key and \
|
||||||
'\r' not in key and \
|
'\r' not in key and \
|
||||||
'\n' not in key and \
|
'\n' not in key and \
|
||||||
|
Loading…
Reference in New Issue
Block a user