Пример #1
0
 def test_create_clipboard_item(self):
     image = self.create_filer_image()
     image.save()
     # Get the clipboard of the current user
     clipboard_item = create_clipboard_item(user=self.superuser, file=image)
     clipboard_item.save()
     self.assertEqual(Clipboard.objects.count(), 1)
Пример #2
0
 def test_create_clipboard_item(self):
     image = self.create_filer_image()
     image.save()
     # Get the clipboard of the current user
     clipboard_item = create_clipboard_item(user=self.superuser,
                           file=image)
     clipboard_item.save()
     self.assertEqual(Clipboard.objects.count(), 1)