Пример #1
0
 def setUp(self):
     self.form = ImportFileForm()
     self.shopping_list = mock.create_autospec(ShoppingList)
     self.form.cleaned_data = {
         'import_file': ('first', 'second', 'third', 'fourth'),
         'shopping_list': self.shopping_list
     }