This could work
On Feb 25, 2014 7:54 PM, "Mark Cowlishaw" <notifications@github.com> wrote:

> In test/common/deserialization/bool-datatype-deserialization-tests.js:
>
> > +var nock = require('nock');
> > +var util = require('util');
> > +
> > +var azure = testutil.libRequire('azure');
> > +var CertificateCloudCredentials = azure.CertificateCloudCredentials;
> > +var TestSerializationClient = tc.TestSerializationClient;
> > +
> > +
> > +suite('bool-datatype-deserialization-tests', function () {
> > +  var baseUri = 'http://helloworld';
> > +  var subscriptionId = "c9cbd920-c00c-427c-852b-8aaf38badaeb";
> > +  var pemfile = process.env.AZURE_CERTIFICATE_PEM_FILE;
> > +  var credentials = new CertificateCloudCredentials({ subscriptionId: subscriptionId, pem: fs.readFileSync(pemfile).toString()});
> > +  var testclient = new TestSerializationClient(credentials, baseUri);
> > +
> > +  test('GetBool with a true value should deserialize into true value', function (done) {
>
> A general comment - most of these test cases coule be represented by a
> single method with parameters (type name, value) or (typename, value,
> excpected exception).
>
> My first preference would be for a test generator or data-driven test.
> Failing that, the individual test methods should simply call your test
> generator method so we don't have so much code duplication. If we can't do
> the data driven test right now, let's file a bug and schedule this for a
> later milestone.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/WindowsAzure/azure-sdk-for-node/pull/1164/files#r10052869>
> .
>