'Test that management command raises `CommandError` with a proper message in case of
invalid command arguments.
This test would fail with an error if ValueError is raised.'

def test_raises_command_error_for_invalid_arguments(self):

    with self.assertRaisesMessage(CommandError, "Command    can    only    be    used    with    '--pull'    option."):
        call_command('saml')
    with self.assertRaisesMessage(CommandError, "Command    can    only    be    used    with    '--pull'    option."):
        call_command('saml', pull=False)
