def METHOD_NAME(self):
    tag1 = get_tag("tag1", db.session, TagTypes.custom)
    # delete first to make test idempotent
    self.reset_tag(tag1)
    strategy = DashboardTagsStrategy(["tag1"])
    result = strategy.get_payloads()
    expected = []
    self.assertEqual(result, expected)
    # tag dashboard 'births' with `tag1`
    tag1 = get_tag("tag1", db.session, TagTypes.custom)
    dash = self.get_dash_by_slug("births")
    tag1_urls = [{"chart_id": chart.id} for chart in dash.slices]
    tagged_object = TaggedObject(
        tag_id=tag1.id, object_id=dash.id, object_type=ObjectTypes.dashboard
    )
    db.session.add(tagged_object)
    db.session.commit()
    self.assertCountEqual(strategy.get_payloads(), tag1_urls)
    strategy = DashboardTagsStrategy(["tag2"])
    tag2 = get_tag("tag2", db.session, TagTypes.custom)
    self.reset_tag(tag2)
    result = strategy.get_payloads()
    expected = []
    self.assertEqual(result, expected)
    # tag first slice
    dash = self.get_dash_by_slug("unicode-test")
    chart = dash.slices[0]
    tag2_urls = [{"chart_id": chart.id}]
    object_id = chart.id
    tagged_object = TaggedObject(
        tag_id=tag2.id, object_id=object_id, object_type=ObjectTypes.chart
    )
    db.session.add(tagged_object)
    db.session.commit()
    result = strategy.get_payloads()
    self.assertCountEqual(result, tag2_urls)
    strategy = DashboardTagsStrategy(["tag1", "tag2"])
    result = strategy.get_payloads()
    expected = tag1_urls + tag2_urls
    self.assertCountEqual(result, expected)