'Test get retention policies for TestInfluxDBClient object.'

def test_get_list_retention_policies(self):

    example_response = u'{"results":    [{"series":    [{"values":    [["fsfdsdf",    "24h0m0s",    2]],    "columns":    ["name",    "duration",    "replicaN"]}]}]}'
    with requests_mock.Mocker() as m:
        m.register_uri(requests_mock.GET, u'http://localhost:8086/query', text=example_response)
        self.assertListEqual(self.cli.get_list_retention_policies(u'db'), [{u'duration': u'24h0m0s', u'name': u'fsfdsdf', u'replicaN': 2}])
