Skip to content

Commit eb5ba53

Browse files
Update pusher_tests/test_util.py
Co-authored-by: Evgenii Breikin <[email protected]>
1 parent 739c96e commit eb5ba53

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pusher_tests/test_util.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ def test_validate_user_id(self):
1616
pusher.util.validate_user_id(user_id)
1717

1818
def test_validate_channel(self):
19-
valid_channels = ["123", "xyz", "xyz123", "xyz_123", "xyz-123", "Channel@123", "channel_xyz", "channel-xyz",
20-
"channel,456", "channel;asd", "[email protected],987;654", "#server-to-user1234",
21-
"#server-to-users"]
19+
valid_channels = ["123", "xyz", "xyz123", "xyz_123", "xyz-123", "Channel@123", "channel_xyz", "channel-xyz", "channel,456", "channel;asd", "[email protected],987;654"]
2220

23-
invalid_channels = ["#123", "x" * 201, "abc%&*"]
21+
invalid_channels = ["#123", "x" * 201, "abc%&*", "#server-to-user1234", "#server-to-users"]
2422

2523
for channel in valid_channels:
2624
self.assertEqual(channel, pusher.util.validate_channel(channel))

0 commit comments

Comments
 (0)