Пример #1
0
 def test_assert_jury_should_have_users(self):
     self.assertIn('users', get_all_field_names(Jury))
Пример #2
0
 def test_assert_event_should_have_a_title(self):
     self.assertIn('title', get_all_field_names(Event))
Пример #3
0
 def test_assert_event_should_allow_public_voting(self):
     self.assertIn('allow_public_voting', get_all_field_names(Event))
Пример #4
0
 def test_assert_proposal_should_have_a_publish_flag(self):
     self.assertIn('is_published', get_all_field_names(Proposal))
Пример #5
0
 def test_assert_vote_should_have_a_proposal(self):
     self.assertIn('proposal', get_all_field_names(Vote))
Пример #6
0
 def test_assert_proposal_should_have_a_title(self):
     self.assertIn('title', get_all_field_names(Proposal))
Пример #7
0
 def test_assert_proposal_should_have_a_author(self):
     self.assertIn('author', get_all_field_names(Proposal))
Пример #8
0
 def test_assert_proposal_should_have_a_event(self):
     self.assertIn('event', get_all_field_names(Proposal))
Пример #9
0
 def test_assert_proposal_should_have_a_publish_flag(self):
     self.assertIn('is_published', get_all_field_names(Proposal))
Пример #10
0
 def test_assert_proposal_should_have_a_description(self):
     self.assertIn('description', get_all_field_names(Proposal))
Пример #11
0
 def test_assert_proposal_should_have_a_author(self):
     self.assertIn('author', get_all_field_names(Proposal))
Пример #12
0
 def test_assert_proposal_should_have_a_title(self):
     self.assertIn('title', get_all_field_names(Proposal))
Пример #13
0
 def test_assert_event_should_have_a_jury(self):
     self.assertIn('jury', get_all_field_names(Event))
Пример #14
0
 def test_assert_event_should_have_a_publish_flag(self):
     self.assertIn('is_published', get_all_field_names(Event))
Пример #15
0
 def test_assert_event_should_have_a_publish_flag(self):
     self.assertIn('is_published', get_all_field_names(Event))
Пример #16
0
 def test_assert_vote_should_have_a_rate(self):
     self.assertIn('rate', get_all_field_names(Vote))
Пример #17
0
 def test_assert_event_should_have_a_jury(self):
     self.assertIn('jury', get_all_field_names(Event))
Пример #18
0
 def test_assert_vote_should_have_a_proposal(self):
     self.assertIn('proposal', get_all_field_names(Vote))
Пример #19
0
 def test_assert_proposal_should_have_a_description(self):
     self.assertIn('description', get_all_field_names(Proposal))
Пример #20
0
 def test_assert_vote_should_have_a_author(self):
     self.assertIn('user', get_all_field_names(Vote))
Пример #21
0
 def test_assert_proposal_should_have_a_event(self):
     self.assertIn('event', get_all_field_names(Proposal))
Пример #22
0
 def test_assert_event_should_have_a_title(self):
     self.assertIn('title', get_all_field_names(Event))
Пример #23
0
 def test_assert_vote_should_have_a_rate(self):
     self.assertIn('rate', get_all_field_names(Vote))
Пример #24
0
 def test_assert_event_should_have_a_description(self):
     self.assertIn('description', get_all_field_names(Event))
Пример #25
0
 def test_assert_vote_should_have_a_author(self):
     self.assertIn('user', get_all_field_names(Vote))
Пример #26
0
 def test_assert_event_should_allow_public_voting(self):
     self.assertIn('allow_public_voting', get_all_field_names(Event))
Пример #27
0
 def test_assert_event_should_have_a_description(self):
     self.assertIn('description', get_all_field_names(Event))
Пример #28
0
 def test_assert_event_should_have_a_author(self):
     self.assertIn('author', get_all_field_names(Event))
Пример #29
0
 def test_assert_event_should_have_a_author(self):
     self.assertIn('author', get_all_field_names(Event))
Пример #30
0
 def test_assert_jury_should_have_users(self):
     self.assertIn('users', get_all_field_names(Jury))