'Tests getting all of the HostMappings for a given CellMapping id.'

def test_host_mapping_list_get_by_cell_id(self):

    self.assertEqual(0, len(host_mapping.HostMappingList.get_by_cell_id(self.context, sample_cell_mapping['id'])))
    db_host_mapping = create_mapping()
    host_mapping_list = host_mapping.HostMappingList.get_by_cell_id(self.context, db_host_mapping['cell_id'])
    self.assertEqual(1, len(host_mapping_list))
    self.assertEqual(db_host_mapping['id'], host_mapping_list[0].id)
