tests package¶
Submodules¶
tests.map module¶
-
class
tests.map.Biz(name, location, description)¶ Bases:
objectClass that represents a buisness object
- Parameters
name (str) – The name of the buisiness
location (str) – The borough where the buisiness is located
description (str) – A description of the buisiness
-
tests.map.borough()¶ Ensures the borough entered is a string
-
tests.map.dist()¶ Ensures distance value is an integer
-
tests.map.inc(x)¶ Function that increments given integer by 1.
- Parameters
x (int) – The given integer.
-
tests.map.searchbar()¶ Ensures seach bar only accepts strings
tests.test_all module¶
-
tests.test_all.anydup(thelist)¶ Checks if there are any duplicates in the list of buisnesses
- Parameters
thelist (List) – List of Biz objects
-
tests.test_all.emptyList(thelist)¶ Checks if list is empty
- Parameters
thelist (List) – List of Biz objects
-
tests.test_all.test2_searchbar()¶
-
tests.test_all.test_Bizclass()¶
-
tests.test_all.test_Bizes()¶
-
tests.test_all.test_borough()¶ Tests if function to ensure borough is a string is working
-
tests.test_all.test_borough2()¶
-
tests.test_all.test_dist()¶ Tests if function to ensure distance is an integer works
-
tests.test_all.test_dist2()¶
-
tests.test_all.test_inc()¶ Tests the increment function
-
tests.test_all.test_searchbar()¶ Tests the search bar method