def test_get_host(self, mock_pyhorn):

        controller = MatterhornController('http://mh.example.edu')
        controller._hosts = [
            Mock(id=1, base_url='foo'),
            Mock(id=2, base_url='bar')
        ]
        self.assertEqual(controller.get_host(Mock(mh_host_url="foo")).id, 1)
        self.assertEqual(controller.get_host(Mock(mh_host_url="bar")).id, 2)