def test_unknown_ec2_template_href(self): assert not _extract_template_id( 'https://my.rightscale.com/api/acct/' 'account_id/rackspace_server_templates/12345')
def test_ec2_template_href(self): self.assertEqual(_extract_template_id( 'https://my.rightscale.com/api/acct/' 'account_id/ec2_server_templates/12345'), '12345')