| Total Complexity | 2 | 
| Total Lines | 19 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | """Test constants.py"""  | 
            ||
| 2 | |||
| 3 | from kytos.core import constants  | 
            ||
| 4 | from kytos.core.config import KytosConfig  | 
            ||
| 5 | |||
| 6 | |||
| 7 | def test_connection_timeout() -> None:  | 
            ||
| 8 | """test connection_timeout."""  | 
            ||
| 9 | assert constants.CONNECTION_TIMEOUT == 130  | 
            ||
| 10 | assert (  | 
            ||
| 11 | int(KytosConfig().options["daemon"].connection_timeout)  | 
            ||
| 12 | == constants.CONNECTION_TIMEOUT  | 
            ||
| 13 | )  | 
            ||
| 14 | |||
| 15 | |||
| 16 | def test_flood() -> None:  | 
            ||
| 17 | """test flood."""  | 
            ||
| 18 | assert constants.FLOOD_TIMEOUT == 100000  | 
            ||
| 19 |