requests.utils.is_valid_cidr

Here are the examples of the python api requests.utils.is_valid_cidr taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: YCM_WIN_X86 Source File: test_requests.py
    def test_is_valid_cidr(self):
        from requests.utils import is_valid_cidr
        assert not is_valid_cidr('8.8.8.8')
        assert is_valid_cidr('192.168.1.0/24')