portfoliome /
foil
| 1 | import unittest |
||
|
0 ignored issues
–
show
|
|||
| 2 | |||
| 3 | from foil.agent import UserAgent |
||
| 4 | |||
| 5 | |||
| 6 | class TestAgent(unittest.TestCase): |
||
| 7 | def test_user_agent(self): |
||
| 8 | expected = 'Mozilla/4.0 (compatible; MSIE 4.01; Windows 95)' |
||
| 9 | result = UserAgent.ie |
||
| 10 | |||
| 11 | self.assertEqual(expected, result) |
||
| 12 |
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.