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]), )
def test_exclude_non_existent(self): self.assertEqual( (set(), set((self.captain, self.first_mate))), views.get_interviewers(self.req, dont_include=[self.pilot]), )
def test_exclude(self): self.assertEqual( (set(), set((self.captain,))), views.get_interviewers(self.req, dont_include=[self.first_mate]), )
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]), )
def test_get_interviewers(self): self.assertEqual( (set(), set((self.captain, self.first_mate))), views.get_interviewers(self.req), )