Exemple #1
0
 def test_valid_website(self):
     project = Project()
     project.name = 'Test project'
     project.type = 'O'
     for u in valid_urls:
         project.website = u
         project.full_clean()
Exemple #2
0
 def test_valid_website(self):
     project = Project()
     project.name = 'Test project'
     project.type = 'O'
     for u in valid_urls:
         project.website = u
         project.full_clean()
Exemple #3
0
 def test_invalid_website(self):
     project = Project()
     project.name = 'Test project'
     project.type = 'O'
     for u in invalid_urls:
         project.website = u
         with self.assertRaises(ValidationError):
             project.full_clean()
Exemple #4
0
 def test_invalid_website(self):
     project = Project()
     project.name = 'Test project'
     project.type = 'O'
     for u in invalid_urls:
         project.website = u
         with self.assertRaises(ValidationError):
             project.full_clean()
Exemple #5
0
 def test_create_necessary_attributes(self):
     project = Project()
     project.name = 'Test project'
     project.type = 'O'
     project.full_clean()
Exemple #6
0
 def test_create_necessary_attributes(self):
     project = Project()
     project.name = 'Test project'
     project.type = 'O'
     project.full_clean()