def test_match_and_run(self): self.fresh_setup() cherise = Profile.objects.get(first_name='Cherise') rishi = Profile.objects.get(first_name='Rishi') hannah = Profile.objects.get(first_name='Hannah') anya = Profile.objects.get(first_name='Anya') group = {self.jul26: [cherise, rishi, hannah, anya]} self.assertEqual(Command.run_group_matches(Command()), group)
def test_match_and_run_fresh_first_day(self): self.fresh_setup() t = Profile.objects.get(first_name='tiffany') a = Profile.objects.get(first_name='andrew') pj = Profile.objects.get(first_name='philip') mike = Profile.objects.get(first_name='michael') group = {self.future: [t, a, pj, mike]} self.assertEqual(Command.run_group_matches(Command()), group)