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 67888c9 commit 856ef6e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/zope/server/tests/test_utilities.py
Original file line number Diff line number Diff line change
@@ -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 856ef6e

Please sign in to comment.