Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cloudooo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
cloudooo
Commits
d5d117b1
Commit
d5d117b1
authored
May 30, 2011
by
Priscila Manhaes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor for using cloudoootestcase
parent
177b7c13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
1 deletion
+33
-1
cloudooo/handler/ffmpeg/tests/testServer.py
cloudooo/handler/ffmpeg/tests/testServer.py
+33
-1
No files found.
cloudooo/handler/ffmpeg/tests/testServer.py
View file @
d5d117b1
...
@@ -32,7 +32,7 @@ from os.path import join
...
@@ -32,7 +32,7 @@ from os.path import join
from
base64
import
encodestring
,
decodestring
from
base64
import
encodestring
,
decodestring
from
magic
import
Magic
from
magic
import
Magic
DAEMON
=
True
#
DAEMON = True
class
TestServer
(
HandlerTestCase
):
class
TestServer
(
HandlerTestCase
):
...
@@ -68,5 +68,37 @@ class TestServer(HandlerTestCase):
...
@@ -68,5 +68,37 @@ class TestServer(HandlerTestCase):
self
.
assertEquals
(
metadata
[
"Title"
],
'Server Set Metadata Test'
)
self
.
assertEquals
(
metadata
[
"Title"
],
'Server Set Metadata Test'
)
#from os.path import join
#from cloudooo.tests.cloudoooTestCase import TestCase, make_suite
#class TestServer(TestCase):
# def ConversionScenarioList(self):
# return [
# (join('data', 'test.ogv'), "ogv", "mpeg", "video/mpeg"),
# ]
# def testConvertVideo(self):
# self.runConversionList(self.ConversionScenarioList())
# def GetMetadataScenarioList(self):
# return [
# (join('data', 'test.ogv'), "ogv", dict(Data='', ENCODER='Lavf52.64'+
# '.2')),
# ]
# def testGetMetadata(self):
# self.runGetMetadataList(self.GetMetadataScenarioList())
# def UpdateMetadataScenarioList(self):
# return [
# (join('data', 'test.ogv'), "ogv", dict(title='Server Set Metadata '+
# 'Test'), dict(Data='', ENCODER='Lavf52.64.2', title='Server Set Me'+
# 'tadata Test')),
# ]
# def testSetMetadata(self):
# self.runUpdateMetadataList(self.UpdateMetadataScenarioList())
def
test_suite
():
def
test_suite
():
return
make_suite
(
TestServer
)
return
make_suite
(
TestServer
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment