Example #1
0
 def test_when_no_manuals_match_view_name(self):
     contextual_manual = find_contextual_user_manual(
         "view_name", self.manuals, self.default_manual)
     self.assertEqual(contextual_manual, self.default_manual)
Example #2
0
 def test_when_a_manual_match_view_name(self):
     contextual_manual = find_contextual_user_manual(
         "view_specific", self.manuals, self.default_manual)
     self.assertEqual(contextual_manual, self.manuals[0])
Example #3
0
 def test_when_no_manuals_given(self):
     contextual_manual = find_contextual_user_manual(
         "view_name", [], self.default_manual)
     self.assertEqual(contextual_manual, self.default_manual)