| Total Complexity | 6 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| 1 | # pylint: disable=missing-docstring,no-self-use,abstract-class-instantiated |
||
| 8 | class TestConverter: |
||
| 9 | |||
| 10 | """Unit tests for the `Converter` class.""" |
||
| 11 | |||
| 12 | def test_converter_class_cannot_be_instantiated(self): |
||
| 13 | with pytest.raises(TypeError): |
||
| 14 | Converter() |
||
| 15 | |||
| 16 | def test_converter_class_methods_cannot_be_called(self): |
||
| 17 | with pytest.raises(NotImplementedError): |
||
| 18 | Converter.create_default() |
||
| 19 | with pytest.raises(NotImplementedError): |
||
| 20 | Converter.to_value(None) |
||
| 21 | with pytest.raises(NotImplementedError): |
||
| 22 | Converter.to_data(None) |
||
| 23 |