'Set up the test datasource name for TestInfluxDBClient object.'

def test_dsn(self):

    cli = InfluxDBClient.from_dsn(u'influxdb://192.168.0.1:1886')
    self.assertEqual(u'http://192.168.0.1:1886', cli._baseurl)
    cli = InfluxDBClient.from_dsn(self.dsn_string)
    self.assertEqual(u'http://my.host.fr:1886', cli._baseurl)
    self.assertEqual(u'uSr', cli._username)
    self.assertEqual(u'pWd', cli._password)
    self.assertEqual(u'db', cli._database)
    self.assertFalse(cli.use_udp)
    cli = InfluxDBClient.from_dsn((u'udp+' + self.dsn_string))
    self.assertTrue(cli.use_udp)
    cli = InfluxDBClient.from_dsn((u'https+' + self.dsn_string))
    self.assertEqual(u'https://my.host.fr:1886', cli._baseurl)
    cli = InfluxDBClient.from_dsn((u'https+' + self.dsn_string), **{u'ssl': False})
    self.assertEqual(u'http://my.host.fr:1886', cli._baseurl)
