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.agent import UserAgent
class TestAgent(unittest.TestCase):
def test_user_agent(self):
expected = 'Mozilla/4.0 (compatible; MSIE 4.01; Windows 95)'
result = UserAgent.ie
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.