def test__get_conn_true(self): """ tests ensures that _get_conn returns an boto.ec2.connection.EC2Connection object. """ conn = boto.ec2.connect_to_region(region, **boto_conn_parameters) salt_conn = boto_secgroup._get_conn(**conn_parameters) assert conn.__class__ == salt_conn.__class__
def test__get_conn_true(self): ''' tests ensures that _get_conn returns an boto.ec2.connection.EC2Connection object. ''' conn = boto.ec2.connect_to_region(region, **boto_conn_parameters) salt_conn = boto_secgroup._get_conn(**conn_parameters) self.assertEqual(conn.__class__, salt_conn.__class__)