示例#1
0
 def test_write_parts_as_sentence_with_both_parts_not_None(self):
     self.assertEqual(
         SearchSummary.write_parts_as_sentence([u"an", u"Hour"]),
         u"an Hour")
示例#2
0
 def test_write_parts_as_sentence_with_second_part_None(self):
     self.assertEqual(
         SearchSummary.write_parts_as_sentence([u"Hour", None]), u"Hour")
示例#3
0
 def test_write_parts_as_sentence_with_first_part_None(self):
     self.assertEqual(
         SearchSummary.write_parts_as_sentence([None, u"Hour"]), u"Hour")
 def test_write_parts_as_sentence_with_both_parts_not_None(self):
     self.assertEqual(
         SearchSummary.write_parts_as_sentence(
             [u"an", u"Hour"]),
         u"an Hour")
 def test_write_parts_as_sentence_with_second_part_None(self):
     self.assertEqual(
         SearchSummary.write_parts_as_sentence(
             [u"Hour", None]),
         u"Hour")
 def test_write_parts_as_sentence_with_first_part_None(self):
     self.assertEqual(
         SearchSummary.write_parts_as_sentence(
             [None, u"Hour"]),
         u"Hour")