def test_get_user_uploadjobs(self):
        """Test get_user_uploadjobs."""
        jobs = list(self.vgw.get_user_uploadjobs())
        self.assertEqual(jobs, [])
        file1 = self.vgw.make_file(self.root.id, 'the file1 name')
        file2 = self.vgw.make_file(self.root.id, 'the file2 name')
        file3 = self.vgw.make_file(self.root.id, 'the file3 name')
        new_hash = self.factory.get_fake_hash()
        crc = 12345
        size = 100
        self.vgw.make_uploadjob(
            file1.id, file1.content_hash, new_hash, crc, size)
        self.vgw.make_uploadjob(
            file1.id, file1.content_hash, new_hash, crc, size)
        self.vgw.make_uploadjob(
            file2.id, file2.content_hash, new_hash, crc, size)
        jobs = list(self.vgw.get_user_uploadjobs())
        self.assertEqual(len(jobs), 3)
        jobs = list(self.vgw.get_user_uploadjobs(node_id=file1.id))
        self.assertEqual(len(jobs), 2)
        jobs = list(self.vgw.get_user_uploadjobs(node_id=file3.id))
        self.assertEqual(jobs, [])