def test_command_exists_when_command_exists_returns_True(self):
     cmd_name = "test_command_exists_when_command_exists"
     command = mock.MagicMock(__name__=cmd_name)
     command.__name__ = cmd_name
     add_command(cmd_name, command)
     self.assertTrue(command_exists(cmd_name))