mirror of
https://github.com/gryf/pygtktalog.git
synced 2025-12-17 11:30:19 +01:00
Cosmetic changes to test files for modules video and misc.
This commit is contained in:
@@ -7,8 +7,10 @@
|
|||||||
"""
|
"""
|
||||||
import unittest
|
import unittest
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import pygtktalog.misc as pgtkmisc
|
import pygtktalog.misc as pgtkmisc
|
||||||
|
|
||||||
|
|
||||||
class TestMiscModule(unittest.TestCase):
|
class TestMiscModule(unittest.TestCase):
|
||||||
"""
|
"""
|
||||||
Tests functions from misc module
|
Tests functions from misc module
|
||||||
@@ -25,7 +27,7 @@ class TestMiscModule(unittest.TestCase):
|
|||||||
self.assertRaises(TypeError, pgtkmisc.float_to_string, None)
|
self.assertRaises(TypeError, pgtkmisc.float_to_string, None)
|
||||||
self.assertRaises(TypeError, pgtkmisc.float_to_string, '10')
|
self.assertRaises(TypeError, pgtkmisc.float_to_string, '10')
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
os.chdir(os.path.join(os.path.abspath(os.path.dirname(__file__)), "../"))
|
os.chdir(os.path.join(os.path.abspath(os.path.dirname(__file__)), "../"))
|
||||||
print os.path.abspath(os.path.curdir)
|
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|||||||
@@ -7,8 +7,10 @@
|
|||||||
"""
|
"""
|
||||||
import unittest
|
import unittest
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from pygtktalog.video import Video
|
from pygtktalog.video import Video
|
||||||
|
|
||||||
|
|
||||||
class TestVideo(unittest.TestCase):
|
class TestVideo(unittest.TestCase):
|
||||||
"""Class for retrive midentify script output and put it in dict.
|
"""Class for retrive midentify script output and put it in dict.
|
||||||
Usually there is no need for such a detailed movie/clip information.
|
Usually there is no need for such a detailed movie/clip information.
|
||||||
@@ -101,7 +103,7 @@ class TestVideo(unittest.TestCase):
|
|||||||
self.assertEqual(file_size, 9077)
|
self.assertEqual(file_size, 9077)
|
||||||
os.unlink(filename)
|
os.unlink(filename)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
os.chdir(os.path.join(os.path.abspath(os.path.dirname(__file__)), "../"))
|
os.chdir(os.path.join(os.path.abspath(os.path.dirname(__file__)), "../"))
|
||||||
print os.path.abspath(os.path.curdir)
|
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|||||||
Reference in New Issue
Block a user