示例#1
0
 def test_valid_consumer_form(self):
     """
        test if that form is a valid consumer one
     """
     d = self.create_github()
     data = {'repo': d.repo, 'project': d.project}
     form = GithubConsumerForm(data=data)
     self.assertTrue(form.is_valid())
示例#2
0
 def test_valid_consumer_form(self):
     """
        test if that form is a valid consumer one
     """
     d = self.create_github()
     data = {'repo': d.repo, 'project': d.project}
     form = GithubConsumerForm(data=data)
     self.assertTrue(form.is_valid())
示例#3
0
 def test_invalid_consumer_form(self):
     """
        test if that form is not a valid consumer one
     """
     form = GithubConsumerForm(data={})
     self.assertFalse(form.is_valid())
示例#4
0
 def test_invalid_consumer_form(self):
     """
        test if that form is not a valid consumer one
     """
     form = GithubConsumerForm(data={})
     self.assertFalse(form.is_valid())