'Test backwards compatibility with the targetpool kwarg.'

def test_ex_create_forwarding_rule_targetpool_keyword(self):

    fwr_name = 'lcforwardingrule'
    targetpool = 'lctargetpool'
    region = 'us-central1'
    address = self.driver.ex_get_address('lcaddress')
    port_range = '8000-8500'
    description = 'test    forwarding    rule'
    fwr = self.driver.ex_create_forwarding_rule(fwr_name, targetpool=targetpool, region=region, address=address, port_range=port_range, description=description)
    self.assertTrue(isinstance(fwr, GCEForwardingRule))
    self.assertEqual(fwr.name, fwr_name)
    self.assertEqual(fwr.region.name, region)
    self.assertEqual(fwr.protocol, 'TCP')
    self.assertEqual(fwr.extra['portRange'], port_range)
    self.assertEqual(fwr.extra['description'], description)
