Exemple #1
0
    def test_create_batches_creates_at_generator(self, _, create_at_generator):
        create_batches(*self.test_args)

        create_at_generator.assert_called_once_with(self.at, self.interval)
Exemple #2
0
    def test_create_batches_return_tuple_of_batches_and_at_generator(self, batch_items, create_at_generator):
        ret = create_batches(*self.test_args)

        self.assertEqual(ret, (batch_items.return_value, create_at_generator.return_value))
Exemple #3
0
    def test_create_batches_batches_items(self, batch_items, *args):
        create_batches(*self.test_args)

        batch_items.assert_called_once_with(self.command, self.items, self.parallel)