'Test deprecated switch database for TestInfluxDBClient object.'

@raises(FutureWarning)
def test_switch_db_deprecated(self):

    cli = InfluxDBClient('host', 8086, 'username', 'password', 'database')
    cli.switch_db('another_database')
    self.assertEqual(cli._database, 'another_database')
