kyu_5.count_ip_addresses package¶
Submodules¶
kyu_5.count_ip_addresses.ips_between module¶
-
kyu_5.count_ip_addresses.ips_between.
ips_between
(start: str, end: str) → int[source]¶ A function that receives two IPv4 addresses, and returns the number of addresses between them (including the first one, excluding the last one).
All inputs will be valid IPv4 addresses in the form of strings. The last address will always be greater than the first one. :param start: :param end: :return:
kyu_5.count_ip_addresses.test_ips_between module¶
-
class
kyu_5.count_ip_addresses.test_ips_between.
IpsBetweenTestCase
(methodName='runTest')[source]¶ Bases:
unittest.case.TestCase
Testing ips_between function
-
pytestmark
= [Mark(name='skip', args=(), kwargs={'reason': 'The solution is not ready'})]¶
-
test_ips_between
()[source]¶ Testing ips_between function
Testing a function that receives two IPv4 addresses, and returns the number of addresses between them (including the first one, excluding the last one).
All inputs will be valid IPv4 addresses in the form of strings. The last address will always be greater than the first one. :return:
-