def test_get_number_of_repeated_sticker(self): album = Album() stickers = [1, 1, 1, 1, 3, 3, 4, 5, 6, 10, 10, 11, 11, 15, 15, 15, 15] album.insert_sticker(stickers) repeated_stickers = album.get_repeated_sticker() self.assertEqual(repeated_stickers, {1: 3, 3: 1, 10: 1, 11: 1, 15: 3})
def test_get_repeated_sticker(self): album = Album() stickers = [1, 3, 3, 4, 5, 6, 1, 10, 11, 11, 15, 3] album.insert_sticker(stickers) repeated_stickers = album.get_repeated_sticker() self.assertEqual(repeated_stickers, {1: 1, 3: 2, 11: 1})