| Total Complexity | 2 | 
| Total Lines | 24 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | # pyre-strict  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 2 | |||
| 3 | import unittest  | 
            ||
| 4 | |||
| 5 | from tests.examples import TEXTS  | 
            ||
| 6 | from paytext import PaymentText  | 
            ||
| 7 | |||
| 8 | |||
| 9 | class PaymentTextTest(unittest.TestCase):  | 
            ||
| 
                                                                                                                                                        
                         1 ignored issue 
                            –
                            show
                         | 
                |||
| 10 | def test_clean(self) -> None:  | 
            ||
| 
                                                                                                                                                        
                         1 ignored issue 
                            –
                            show
                         | 
                |||
| 11 | for example_text in TEXTS:  | 
            ||
| 
                                                                                                    
                         1 ignored issue 
                            –
                            show
                         | 
                |||
| 12 | text = PaymentText(example_text['input'])  | 
            ||
| 
                                                                                                    
                         1 ignored issue 
                            –
                            show
                         | 
                |||
| 13 | |||
| 14 | text.clean()  | 
            ||
| 
                                                                                                    
                         1 ignored issue 
                            –
                            show
                         | 
                |||
| 15 | |||
| 16 | self.assertEqual(  | 
            ||
| 
                                                                                                    
                         1 ignored issue 
                            –
                            show
                         | 
                |||
| 17 | str(text),  | 
            ||
| 18 | example_text['expected_output'],  | 
            ||
| 19 | )  | 
            ||
| 20 | |||
| 21 | |||
| 22 | if __name__ == '__main__':  | 
            ||
| 23 | unittest.main()  | 
            ||
| 
                                                                                                    
                         1 ignored issue 
                            –
                            show
                         | 
                |||
| 24 | 
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.