geolocate.tests package¶
Submodules¶
geolocate.tests.console_mocks module¶
console_mocks.py
Programmed by: Dante Signal31
email: dante.signal31@gmail.com
geolocate.tests.test_config module¶
test_config.py
Programmed by: Dante Signal31
email: dante.signal31@gmail.com
geolocate.tests.test_geolocate module¶
test_geolocate.py
Programmed by: Dante Signal31
email: dante.signal31@gmail.com
-
class
geolocate.tests.test_geolocate.
Arguments
(show_enabled_locators, set_locators_preference, show_disabled_locators, reset_locators_preference, set_user, set_password)¶ Bases:
tuple
-
reset_locators_preference
¶ Alias for field number 3
-
set_locators_preference
¶ Alias for field number 1
-
set_password
¶ Alias for field number 5
-
set_user
¶ Alias for field number 4
-
show_disabled_locators
¶ Alias for field number 2
-
show_enabled_locators
¶ Alias for field number 0
-
-
class
geolocate.tests.test_geolocate.
ErroneousArguments
(show_enabled_locators, set_locators_preference, show_disabled_locators, reset_locators_preference, erroneous_argument)¶ Bases:
tuple
-
erroneous_argument
¶ Alias for field number 4
-
reset_locators_preference
¶ Alias for field number 3
-
set_locators_preference
¶ Alias for field number 1
-
show_disabled_locators
¶ Alias for field number 2
-
show_enabled_locators
¶ Alias for field number 0
-
-
class
geolocate.tests.test_geolocate.
MockedArguments
(arg1, arg2, arg3, arg4)[source]¶ Bases:
object
Used to detect private attributes.
I couldn’t use namedtuple because it doesn’t admit attributes prefixed by “_”.
geolocate.tests.test_geowrapper module¶
test_geowrapper.py
Programmed by: Dante Signal31
email: dante.signal31@gmail.com
geolocate.tests.test_parser module¶
test_logparser.py
Programmed by: Dante Signal31
email: dante.signal31@gmail.com
-
class
geolocate.tests.test_parser.
TestInputReader
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
-
class
geolocate.tests.test_parser.
TestParser
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
-
test_GeolocateInputParser_format_location_string
()[source]¶ Check format_location_string() returns an string correctly formatted for every verbosity level.
-
test_GeolocateInputParser_locate
()[source]¶ Check locate() returns an string correctly formatted for every verbosity level.
-
test_GeolocateInputParser_next_stdin
()[source]¶ Check class is able to analyze input line by line and return lines with geodata strings included.
-
test_GeolocateInputParser_next_text
()[source]¶ Check class is able to analyze a text and return it with geodata strings included.
-
-
geolocate.tests.test_parser.
city_response
¶ alias of
city
-
geolocate.tests.test_parser.
continent_response
¶ alias of
continent
-
geolocate.tests.test_parser.
country_response
¶ alias of
country
-
class
geolocate.tests.test_parser.
locate_response
(continent, country, city, location)¶ Bases:
tuple
-
city
¶ Alias for field number 2
-
continent
¶ Alias for field number 0
-
country
¶ Alias for field number 1
-
location
¶ Alias for field number 3
-
-
geolocate.tests.test_parser.
location_response
¶ alias of
location
geolocate.tests.testing_tools module¶
testing_tools.py
Programmed by: Dante Signal31
email: dante.signal31@gmail.com