]> git.phdru.name Git - m_librarian.git/blob - tests/test_glst.py
Add tests; test importing list of genres
[m_librarian.git] / tests / test_glst.py
1 #! /usr/bin/env python
2
3
4 from tests import TestCase, main
5 from m_librarian.db import Genre
6 from m_librarian.glst import import_glst
7
8
9 class TestGlst(TestCase):
10     def test_import_glst(self):
11         import_glst()
12         self.assertEqual(Genre.select().count(), 340)
13
14
15 if __name__ == "__main__":
16     main()