diff options
author | Jauhien Piatlicki (jauhien) <piatlicki@gmail.com> | 2013-07-01 00:19:51 +0200 |
---|---|---|
committer | Jauhien Piatlicki (jauhien) <piatlicki@gmail.com> | 2013-07-01 00:19:51 +0200 |
commit | ad2315d5c047be8696c84d76b64a0cac39aaf2da (patch) | |
tree | 885fe72f207d65f68d2b162e9f630a6fe5c289ba /tests | |
parent | g_sorcery/metadata: XMLGenerator (diff) | |
download | g-sorcery-ad2315d5c047be8696c84d76b64a0cac39aaf2da.tar.gz g-sorcery-ad2315d5c047be8696c84d76b64a0cac39aaf2da.tar.bz2 g-sorcery-ad2315d5c047be8696c84d76b64a0cac39aaf2da.zip |
g_sorcery/metadata: MetadataGenerator, initial commit
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_metadata.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test_metadata.py b/tests/test_metadata.py index 91da5bc..8bec86b 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -75,7 +75,23 @@ class TestXMLGenerator(unittest.TestCase): <flag name="flag2">test2</flag></test_ext>') +class DummyMetadataGenerator(metadata.MetadataGenerator): + def __init__(self, db): + super().__init__(db) + +class TestMetadataGenerator(unittest.TestCase): + def setUp(self): + self.tempdir = tempfile.TemporaryDirectory() + + def tearDown(self): + del self.tempdir + + def test_process(self): + mg = DummyMetadataGenerator(None) + + def suite(): suite = unittest.TestSuite() suite.addTest(TestXMLGenerator('test_generate')) + suite.addTest(TestMetadataGenerator('test_process')) return suite |