Esempio n. 1
0
    def test_get_background(self):
        folder = Folder()
        response = folder.upload_file('./data/test_convert_slide.pptx')
        self.assertEqual(True, response)

        doc = Document('test_convert_slide.pptx')
        response = doc.get_background(1)
        self.assertNotEquals(False, response)
    def test_get_background(self):
        folder = Folder()
        response = folder.upload_file('./data/test_convert_slide.pptx')
        self.assertEqual(True, response)

        doc = Document('test_convert_slide.pptx')
        response = doc.get_background(1)
        self.assertNotEquals(False, response)
Esempio n. 3
0
    def test_split_presentation(self):
        folder = Folder()
        response = folder.upload_file('./data/test_convert_slide.pptx')
        self.assertEqual(True, response)

        doc = Document('test_convert_slide.pptx')
        response = doc.split_presentation(1, 1)
        self.assertEqual(dict, type(response))
Esempio n. 4
0
    def test_delete_all_slides(self):
        folder = Folder()
        response = folder.upload_file('./data/test_convert_slide.pptx')
        self.assertEqual(True, response)

        doc = Document('test_convert_slide.pptx')
        response = doc.delete_all_slides()
        self.assertEqual(dict, type(response))
Esempio n. 5
0
    def test_clone_slide(self):
        filename = str(time.time()) + '.pptx'
        doc = Document(filename)
        response = doc.create_empty_presentation()
        self.assertEqual(dict, type(response))

        response = doc.clone_slide(1, 1)
        self.assertEqual(dict, type(response))
    def test_split_presentation(self):
        folder = Folder()
        response = folder.upload_file('./data/test_convert_slide.pptx')
        self.assertEqual(True, response)

        doc = Document('test_convert_slide.pptx')
        response = doc.split_presentation(1,1)
        self.assertEqual(dict, type(response))
    def test_delete_all_slides(self):
        folder = Folder()
        response = folder.upload_file('./data/test_convert_slide.pptx')
        self.assertEqual(True, response)

        doc = Document('test_convert_slide.pptx')
        response = doc.delete_all_slides()
        self.assertEqual(dict, type(response))
    def test_clone_slide(self):
        filename = str(time.time()) + '.pptx'
        doc = Document(filename)
        response = doc.create_empty_presentation()
        self.assertEqual(dict, type(response))

        response = doc.clone_slide(1,1)
        self.assertEqual(dict, type(response))
Esempio n. 9
0
    def test_change_position(self):
        folder = Folder()
        response = folder.upload_file('./data/test_convert_slide.pptx')
        self.assertEqual(True, response)

        doc = Document('test_convert_slide.pptx')
        doc.add_slide(1)
        response = doc.change_slide_position(1, 2)
        self.assertEqual(dict, type(response))
    def test_change_position(self):
        folder = Folder()
        response = folder.upload_file('./data/test_convert_slide.pptx')
        self.assertEqual(True, response)

        doc = Document('test_convert_slide.pptx')
        doc.add_slide(1)
        response = doc.change_slide_position(1,2)
        self.assertEqual(dict, type(response))
    def test_merge_presentations(self):
        filename = str(time.time()) + '.ppt'
        doc = Document(filename)
        response = doc.create_empty_presentation()
        self.assertEqual(dict, type(response))

        filename1 = str(time.time()) + '1.ppt'
        doc = Document(filename1)
        response = doc.create_empty_presentation()
        self.assertEqual(dict, type(response))

        filename2 = str(time.time()) + '2.ppt'
        doc = Document(filename2)
        response = doc.create_empty_presentation()
        self.assertEqual(dict, type(response))

        merge_arr = {'List': [filename1,filename2]}
        doc = Document(filename)
        response = doc.merge_presentations(merge_arr)
        self.assertEqual(dict, type(response))
Esempio n. 12
0
    def test_merge_presentations(self):
        filename = str(time.time()) + '.ppt'
        doc = Document(filename)
        response = doc.create_empty_presentation()
        self.assertEqual(dict, type(response))

        filename1 = str(time.time()) + '1.ppt'
        doc = Document(filename1)
        response = doc.create_empty_presentation()
        self.assertEqual(dict, type(response))

        filename2 = str(time.time()) + '2.ppt'
        doc = Document(filename2)
        response = doc.create_empty_presentation()
        self.assertEqual(dict, type(response))

        merge_arr = {'List': [filename1, filename2]}
        doc = Document(filename)
        response = doc.merge_presentations(merge_arr)
        self.assertEqual(dict, type(response))