Exemple #1
0
 def test_exclude_doesnt_trump_include(self):
     self.assertEqual(
             (set((self.pilot,)), set((self.captain, self.first_mate))),
             views.get_interviewers(self.req, also_include=[self.pilot], dont_include=[self.pilot]),
     )
Exemple #2
0
 def test_exclude_non_existent(self):
     self.assertEqual(
             (set(), set((self.captain, self.first_mate))),
             views.get_interviewers(self.req, dont_include=[self.pilot]),
     )
Exemple #3
0
 def test_exclude(self):
     self.assertEqual(
             (set(), set((self.captain,))),
             views.get_interviewers(self.req, dont_include=[self.first_mate]),
     )
Exemple #4
0
 def test_include_already_in(self):
     self.assertEqual(
             (set((self.first_mate,)), set((self.captain,))),
             views.get_interviewers(self.req, also_include=[self.first_mate]),
     )
Exemple #5
0
 def test_get_interviewers(self):
     self.assertEqual(
             (set(), set((self.captain, self.first_mate))),
             views.get_interviewers(self.req),
     )