| Total Complexity | 2 |
| Total Lines | 9 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | import unittest |
||
| 7 | class TestNanConverters(unittest.TestCase): |
||
| 8 | |||
| 9 | def test_nan_to_none(self): |
||
| 10 | self.assertIsNone(isnan(nan_to_none(nan))) |
||
| 11 | self.assertEqual(1, nan_to_none(1)) |
||
| 12 | |||
| 13 | def test_none_to_nan(self): |
||
| 14 | self.assertTrue(isnan(none_to_nan(None))) |
||
| 15 | self.assertEqual(1, none_to_nan(1)) |
||
| 16 |
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.