Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Archmonger committed Oct 2, 2024
1 parent 7fc14c0 commit a683611
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/test_string_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
from servestatic.utils import ensure_leading_trailing_slash


def test_none(self):
def test_none():
assert ensure_leading_trailing_slash(None) == "/"


def test_empty(self):
def test_empty():
assert ensure_leading_trailing_slash("") == "/"


def test_slash(self):
def test_slash():
assert ensure_leading_trailing_slash("/") == "/"


def test_contents(self):
def test_contents():
assert ensure_leading_trailing_slash("/foo/") == "/foo/"


def test_leading(self):
assert ensure_leading_trailing_slash("/foo") == "/foo"
def test_leading():
assert ensure_leading_trailing_slash("/foo") == "/foo/"


def test_trailing(self):
assert ensure_leading_trailing_slash("foo/") == "/foo"
def test_trailing():
assert ensure_leading_trailing_slash("foo/") == "/foo/"

0 comments on commit a683611

Please sign in to comment.