(self, r)
| 5804 | |
| 5805 | @skip_if_server_version_lt("3.2.0") |
| 5806 | def test_geodist(self, r): |
| 5807 | values = (2.1909389952632, 41.433791470673, "place1") + ( |
| 5808 | 2.1873744593677, |
| 5809 | 41.406342043777, |
| 5810 | "place2", |
| 5811 | ) |
| 5812 | assert r.geoadd("barcelona", values) == 2 |
| 5813 | assert r.geodist("barcelona", "place1", "place2") == 3067.4157 |
| 5814 | |
| 5815 | @skip_if_server_version_lt("3.2.0") |
| 5816 | def test_geodist_units(self, r): |