Skip to content
Snippets Groups Projects
Commit 8647fb45 authored by Rafael Ostertag's avatar Rafael Ostertag
Browse files

Added new test to test

managementhost.database.Database.get_module_logs().
parent 518ce754
No related branches found
No related tags found
No related merge requests found
......@@ -61,6 +61,13 @@ class TestDatabase(unittest.TestCase):
for fixture in managementhost_log_fixtures:
db.get_log(fixture[0]) == fixture
def test_get_module_logs(self):
db = managementhost.Database(deployit.config.database_config('path'))
[db.add_log(*arg) for arg in managementhost_log_fixtures]
logs = db.get_module_logs('module2', 5)
self.assertEqual(len(logs), 2)
if __name__ == '__main__':
unittest.main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment