'Test datasource name for TestInfluxDBClient object.'

def test_dsn(self):

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