for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import unittest
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
class SomeClass: def some_method(self): """Do x and return foo."""
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.
from foil.util import natural_sort
class TestNaturalSort(unittest.TestCase):
def test_natural_sort(self):
entries = ['ab127b', 'ab123b']
expected = ['ab123b', 'ab127b']
result = natural_sort(entries)
self.assertEqual(expected, result)
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.