-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Richard Penman
authored and
Richard Penman
committed
Mar 22, 2024
1 parent
432f236
commit 9af016e
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import reverse_geocode | ||
import unittest | ||
|
||
|
||
class TestBuiltwith(unittest.TestCase): | ||
def test_wordpress(self): | ||
coordinates = (-37.81, 144.96), (31.76, 35.21) | ||
results = reverse_geocode.search(coordinates) | ||
self.assertEqual( | ||
results, | ||
[ | ||
{"city": "Melbourne", "country_code": "AU", "country": "Australia"}, | ||
{"city": "Jerusalem", "country_code": "IL", "country": "Israel"}, | ||
], | ||
) | ||
|
||
|
||
if __name__ == "__main__": | ||
unittest.main() |