-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #200 from gcivil-nyu-org/trip-bug-fix
Trip bug fix
- Loading branch information
Showing
6 changed files
with
170 additions
and
62 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
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
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 |
---|---|---|
@@ -1,44 +0,0 @@ | ||
from trip.helpers import city_present_in_country | ||
|
||
|
||
def test_city_present_in_country(self): | ||
city = ["Bangalore"] | ||
country = ["India"] | ||
x = city_present_in_country(city, country) | ||
self.assertTrue(x) | ||
|
||
city = ["Chicago"] | ||
country = ["United States"] | ||
x = city_present_in_country(city, country) | ||
self.assertTrue(x) | ||
|
||
city = ["London"] | ||
country = ["United Kingdom"] | ||
x = city_present_in_country(city, country) | ||
self.assertTrue(x) | ||
|
||
city = ["Cancun"] | ||
country = ["Mexico"] | ||
x = city_present_in_country(city, country) | ||
self.assertTrue(x) | ||
|
||
city = ["Toronto"] | ||
country = ["Canada"] | ||
x = city_present_in_country(city, country) | ||
self.assertTrue(x) | ||
|
||
city = ["Paris"] | ||
country = ["France"] | ||
x = city_present_in_country(city, country) | ||
self.assertTrue(x) | ||
|
||
city = ["Florence"] | ||
country = ["Italy"] | ||
x = city_present_in_country(city, country) | ||
self.assertTrue(x) | ||
|
||
|
||
def test_city_not_present_in_country(self): | ||
city = ["Florence"] | ||
country = ["UAE"] | ||
self.assertRaises(TypeError, lambda: city_present_in_country(city, country)) | ||
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
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