~thelinuxguy/openlp/angular-remote

« back to all changes in this revision

Viewing changes to tests/interfaces/openlp_plugins/bibles/test_lib_manager.py

  • Committer: Tim Bentley
  • Date: 2016-07-23 04:59:26 UTC
  • mfrom: (2661.1.20 openlp)
  • Revision ID: tim.bentley@gmail.com-20160723045926-blk46f5klxndzlia
Head

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
        del self.manager
70
70
        self.destroy_settings()
71
71
 
72
 
    def get_books_test(self):
 
72
    def test_get_books(self):
73
73
        """
74
74
        Test the get_books method
75
75
        """
79
79
        # THEN a list of books should be returned
80
80
        self.assertEqual(66, len(books), 'There should be 66 books in the bible')
81
81
 
82
 
    def get_book_by_id_test(self):
 
82
    def test_get_book_by_id(self):
83
83
        """
84
84
        Test the get_book_by_id method
85
85
        """
89
89
        # THEN a book should be returned
90
90
        self.assertEqual('1 Timothy', book.name, '1 Timothy should have been returned from the bible')
91
91
 
92
 
    def get_chapter_count_test(self):
 
92
    def test_get_chapter_count(self):
93
93
        """
94
94
        Test the get_chapter_count method
95
95
        """
100
100
        # THEN the chapter count should be returned
101
101
        self.assertEqual(6, chapter, '1 Timothy should have 6 chapters returned from the bible')
102
102
 
103
 
    def get_verse_count_by_book_ref_id_test(self):
 
103
    def test_get_verse_count_by_book_ref_id(self):
104
104
        """
105
105
        Test the get_verse_count_by_book_ref_id method
106
106
        """