GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fixed asciify test for python < 3.7 · daveoncode/python-string-utils@c29b258

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tests
    • test_asciify.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tests/test_asciify.py‎

Copy file name to clipboardExpand all lines: tests/test_asciify.py
+1-6Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,4 @@ def test_returns_same_string_if_ascii(self):
2626
self.assertEqual(asciify('<foo></foo>'), '<foo></foo>')
2727

2828
def test_returns_asciified_string(self):
29-
input_string = 'èéùúòóäåëýñÅÀÁÇÌÍÑÓË'
30-
ascii_string = asciify(input_string)
31-
32-
self.assertFalse(input_string.isascii())
33-
self.assertTrue(ascii_string.isascii())
34-
self.assertEqual('eeuuooaaeynAAACIINOE', ascii_string)
29+
self.assertEqual('eeuuooaaeynAAACIINOE', asciify('èéùúòóäåëýñÅÀÁÇÌÍÑÓË'))

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.