def testGetTagsFromComments_no_tags(self): comment = "This part doesn't matter" expected = {} tags = cloudfront_distribution_updater.tags_from_comment(comment) self.assertEqual(expected, tags)
def testGetTagsFromComments_single_tag(self): comment = "This part doesn't matter (KEY1=VALUE1)" expected = {"key1":"value1"} tags = cloudfront_distribution_updater.tags_from_comment(comment) self.assertEqual(expected, tags)