def test_get_kv_backend(self): KVService._get_backend('foobar://foo.bar:4000/collection') MockKV.assert_called_with(host='foo.bar', password=None, db='collection', port=4000)