| Conditions | 2 | 
| Total Lines | 10 | 
| Code Lines | 8 | 
| Lines | 10 | 
| Ratio | 100 % | 
| Changes | 0 | ||
| 1 | """kytos.cli.commands.users.parser tests.""" | ||
| 12 | @staticmethod | ||
| 13 |     @patch('kytos.cli.commands.users.parser.call') | ||
| 14 |     @patch('kytos.cli.commands.users.parser.docopt', return_value='args') | ||
| 15 | def test_parse(*args): | ||
| 16 | """Test parse method.""" | ||
| 17 | (_, mock_call) = args | ||
| 18 | with patch.object(sys, 'argv', ['A', 'B', 'C']): | ||
| 19 |             parse('argv') | ||
| 20 | |||
| 21 |             mock_call.assert_called_with('C', 'args') | ||
| 22 | |||
| 32 |