def test_add_uploadjob_part(self):
        """Test add_uploadjob_part."""
        file1 = self.vgw.make_file(self.root.id, 'the file1 name')
        new_hash = self.factory.get_fake_hash()
        crc = 12345
        size = 100
        job = self.vgw.make_uploadjob(
            file1.id, file1.content_hash, new_hash, crc, size,
            multipart_key=uuid.uuid4())
        job = self.vgw.add_uploadjob_part(job.id, 10)
        self.assertEqual(job.uploaded_bytes, 10)
        self.assertEqual(job.chunk_count, 1)
        job = self.vgw.add_uploadjob_part(job.id, 10)
        self.assertEqual(job.uploaded_bytes, 20)
        self.assertEqual(job.chunk_count, 2)