def test_called_with_file_list_instance(self, api_iterator, *args):
        api_iterator.side_effect = self.api_iterator_side_effect
        storage = FilesStorage(FileList())

        for a, b in zip(storage.uuids(), self.UUIDS):
            self.assertEqual(a, b)
    def test_called_with_file_instances(self, *args):
        storage = FilesStorage(File(u) for u in self.UUIDS)

        for a, b in zip(storage.uuids(), self.UUIDS):
            self.assertEqual(a, b)
    def test_called_with_uuids(self, *args):
        storage = FilesStorage(self.UUIDS)

        for a, b in zip(storage.uuids(), self.UUIDS):
            self.assertEqual(a, b)
Пример #4
0
    def test_called_with_file_list_instance(self, api_iterator, *args):
        api_iterator.side_effect = self.api_iterator_side_effect
        storage = FilesStorage(FileList())

        for a, b in zip(storage.uuids(), self.UUIDS):
            self.assertEqual(a, b)
Пример #5
0
    def test_called_with_file_instances(self, *args):
        storage = FilesStorage(File(u) for u in self.UUIDS)

        for a, b in zip(storage.uuids(), self.UUIDS):
            self.assertEqual(a, b)
Пример #6
0
    def test_called_with_uuids(self, *args):
        storage = FilesStorage(self.UUIDS)

        for a, b in zip(storage.uuids(), self.UUIDS):
            self.assertEqual(a, b)