Cookie Factory with default values

Extend the previous example create_cookies to receive two optional parameters (scarf_color and buttons_color). If they're not included, DEFAULT_SCARF_COLOR and DEFAULT_BUTTON_COLOR class attributes should be used. Example:

cookies = Cookie.create_cookies(5, scarf_color='Red', buttons_color='Yellow')
[<Cookie obj>, <Cookie obj>, <Cookie obj>, <Cookie obj>, <Cookie obj>]
# these cookies should have scarf_color == 'Red' and buttons_color == 'Yellow'

cookies = Cookie.create_cookies(3)
[<Cookie obj>, <Cookie obj>, <Cookie obj>]
# these cookies should have scarf_color == 'Green' and buttons_color == 'Blue'
import unittest


class FactoryTestCase(unittest.TestCase):

    def test_default_values(self):
        cookies = Cookie.create_cookies(
            5, scarf_color='red', buttons_color='yellow')
        self.assertEqual(len(cookies), 5)
        self.assertTrue(all([c.scarf_color == 'red' for c in cookies]))
        self.assertTrue(all([c.buttons_color == 'yellow' for c in cookies]))

        cookies = Cookie.create_cookies(3, scarf_color='red')
        self.assertEqual(len(cookies), 3)
        self.assertTrue(all([c.scarf_color == 'red' for c in cookies]))
        self.assertTrue(all([c.buttons_color == 'Blue' for c in cookies]))

        cookies = Cookie.create_cookies(7)
        self.assertEqual(len(cookies), 7)
        self.assertTrue(all([c.scarf_color == 'Green' for c in cookies]))
        self.assertTrue(all([c.buttons_color == 'Blue' for c in cookies]))