示例#1
0
 def test_cidr_parses(self):
     self.assertEquals(cidr_from_user('192.168.1.0/24'), '192.168.1.0/24')
示例#2
0
文件: types.py 项目: altai/altai-api
 def _from_request_impl(self, value):
     return cidr_from_user(value, on_error=self._illegal_element)
示例#3
0
文件: types.py 项目: altai/altai-api
 def from_argument(self, value):
     return cidr_from_user(value, on_error=self._illegal_argument)
示例#4
0
文件: types.py 项目: altai/altai-api
 def _from_request_impl(self, value):
     return cidr_from_user(value, on_error=self._illegal_element)
示例#5
0
文件: types.py 项目: altai/altai-api
 def from_argument(self, value):
     return cidr_from_user(value, on_error=self._illegal_argument)
示例#6
0
 def test_cidr_parses(self):
     self.assertEquals(cidr_from_user("192.168.1.0/24"), "192.168.1.0/24")