def test_list_projects_by_pay_hourly_up(self): test_create_projects.create_many_projects() response = project_filters.get_projects(status=1, keywords='', order='payment', salary='hourly', ascending=True) contents = response self.assertEqual('Barrel', contents[0].title) self.assertEqual('decoy', contents[5].title) self.assertEqual('Azrael', contents[3].title)
def test_list_projects_by_title_up(self): test_create_projects.create_many_projects() response = project_filters.get_projects(status=1, keywords='', order='title', salary='lump', ascending=True) contents = response self.assertEqual('Azrael', contents[0].title) self.assertEqual('family guy', contents[5].title) self.assertEqual('decoy', contents[3].title)
def test_list_projects_by_pay_lump_down(self): test_create_projects.create_many_projects() response = project_filters.get_projects(status=1, keywords='', order='payment', salary='lump', ascending=False) contents = response self.assertEqual('decoy', contents[0].title) self.assertEqual('Barrel', contents[5].title) self.assertEqual('Cricket', contents[3].title)