def test_get_list(self):
     """ Test retrieving a list of cost centers
     """
     for data in test_data:
         result = CostCenter.get_list(
             filters=data.items(), pattern=data['pattern'])
         self.assertIsInstance(result, type([]))
         for cost_center, code in izip(result, data['expected']):
             self.assertIsInstance(cost_center, CostCenter)
             self.assertEqual(cost_center.code, code)