def METHOD_NAME(self):
    get_return = mock.MagicMock()
    ca_list = [self.ca1_data, self.ca2_data]
    get_return.json.return_value = ca_list
    self.connection.get.return_value = get_return
    cas = self.authority_client.list_cas()
    for ca in cas:
        self.assertIsInstance(ca, authority.AuthorityData)
        if ca.aid == self.aid2:
            self.assertEqual(ca.dn, self.dn2)
        else:
            self.assertEqual(ca.dn, self.dn)