def test_host_and_group_errors(self):
        inventory = make_inventory()

        with self.assertRaises(NoHostError):
            inventory.get_host('i-dont-exist')

        with self.assertRaises(NoGroupError):
            inventory.get_group('i-dont-exist')