예제 #1
0
파일: tests.py 프로젝트: smrpr/pycourse
 def test_validate_external_endpoints_wrong(self):
     """Test validate_external_endpoints(endpoints) returns False
     """
     endpoints = [{"ipv4": ["10.95.150.121"], "ipv6": ["fd88:3be1:fee4:8c5c::aa3"], "port": None, "region": 2,
                   "wowza": {"ipv4": ["10.95.150.81"], "ipv6": ["fd88:3be1:fee4:8c5c::2b"]}}]
     self.assertFalse(source.validate_external_endpoints(endpoints))
예제 #2
0
파일: tests.py 프로젝트: smrpr/pycourse
 def test_validate_external_endpoints(self):
     """Test validate_external_endpoints(ENDPOINTS) returns True
     """
     self.assertTrue(source.validate_external_endpoints(source.ENDPOINTS))