示例#1
0
 def test_recipes_when_multiple_tags_are_selected(self):
     recipes = get_recipes([t.id for t in self.tags])
     self.assertListEqual(recipes, [self.recipes[1]])
示例#2
0
 def test_recipes_when_one_tag_is_selected(self):
     recipes = get_recipes([self.tags[0].id])
     self.assertListEqual(recipes, self.recipes[0:2])
示例#3
0
 def test_all_the_recipes_when_no_tag_selected(self):
     recipes = get_recipes()
     self.assertListEqual(recipes, self.recipes)
示例#4
0
 def test_recipes_when_multiple_tags_are_selected(self):
     recipes = get_recipes([t.id for t in self.tags])
     self.assertListEqual(recipes, [self.recipes[1]])
示例#5
0
 def test_recipes_when_one_tag_is_selected(self):
     recipes = get_recipes([self.tags[0].id])
     self.assertListEqual(recipes, self.recipes[0:2])
示例#6
0
 def test_all_the_recipes_when_no_tag_selected(self):
     recipes = get_recipes()
     self.assertListEqual(recipes, self.recipes)