Beispiel #1
0
 def test_should_provide_helpful_title_when_no_creator_set(self):
     crossword = Crossword()
     crossword.type = "cryptic"
     crossword.number = 42
     self.assertEqual(crossword.title(), "Cryptic Crossword No. 42")
Beispiel #2
0
 def test_should_just_use_name_for_title_if_no_type(self):
     crossword = Crossword()
     crossword.name = "Geoffrey"
     self.assertEqual(crossword.title(), "Geoffrey")
Beispiel #3
0
 def test_should_provide_helpful_title_with_creator(self):
     crossword = Crossword()
     crossword.type = "cryptic"
     crossword.number = 42
     crossword.creator = "Philus Willus"
     self.assertEqual(crossword.title(), "Cryptic Crossword No. 42 set by Philus Willus")