@@ -95,7 +95,7 @@ def setUp(self):
95
95
}
96
96
]
97
97
98
- self .dsn_string = 'influxdb://uSr:pWd@host:1886/db'
98
+ self .dsn_string = 'influxdb://uSr:pWd@my. host.fr :1886/db'
99
99
100
100
def test_scheme (self ):
101
101
cli = InfluxDBClient ('host' , 8086 , 'username' , 'password' , 'database' )
@@ -108,7 +108,7 @@ def test_scheme(self):
108
108
109
109
def test_dsn (self ):
110
110
cli = InfluxDBClient .from_DSN (self .dsn_string )
111
- self .assertEqual ('http://host:1886' , cli ._baseurl )
111
+ self .assertEqual ('http://my. host.fr :1886' , cli ._baseurl )
112
112
self .assertEqual ('uSr' , cli ._username )
113
113
self .assertEqual ('pWd' , cli ._password )
114
114
self .assertEqual ('db' , cli ._database )
@@ -118,11 +118,11 @@ def test_dsn(self):
118
118
self .assertTrue (cli .use_udp )
119
119
120
120
cli = InfluxDBClient .from_DSN ('https+' + self .dsn_string )
121
- self .assertEqual ('https://host:1886' , cli ._baseurl )
121
+ self .assertEqual ('https://my. host.fr :1886' , cli ._baseurl )
122
122
123
123
cli = InfluxDBClient .from_DSN ('https+' + self .dsn_string ,
124
124
** {'ssl' : False })
125
- self .assertEqual ('http://host:1886' , cli ._baseurl )
125
+ self .assertEqual ('http://my. host.fr :1886' , cli ._baseurl )
126
126
127
127
def test_switch_database (self ):
128
128
cli = InfluxDBClient ('host' , 8086 , 'username' , 'password' , 'database' )
0 commit comments