Skip to content

Commit

Permalink
coverage for utilities.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Oct 26, 2017
1 parent 301f31d commit b9e5f55
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/zope/server/tests/test_utilities.py
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
"""
Tests for utilities.py
"""

import unittest

from zope.server import utilities

class TestFunctions(unittest.TestCase):

def test_find_double_newline_twice(self):
s = b"abc\n\r\ndef\n\ngef"
x = utilities.find_double_newline(s)
self.assertEqual(x, 6)

0 comments on commit b9e5f55

Please sign in to comment.