示例#1
0
 def test_create_model_with_valid_ips(self):
     form_data = {
         'ipv4_field': generators.gen_ipv4(),
         'ipv6_field': generators.gen_ipv6(),
         'ipv46_field': generators.gen_ipv46(),
     }
     self.assertTrue(DummyGenericIPAddressFieldForm(form_data).is_valid())
示例#2
0
 def test_create_model_with_valid_ipv4(self):
     form_data = {
         'ip': generators.gen_ipv4(),
     }
     self.assertTrue(DummyIPAddressFieldForm(form_data).is_valid())
示例#3
0
 def test_create_model_with_valid_ipv4(self):
     form_data = {
         'ip': generators.gen_ipv4(),
     }
     self.assertTrue(DummyIPAddressFieldForm(form_data).is_valid())