Example #1
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")
Example #2
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")
Example #3
0
 def test_should_provide_link_to_full_version(self):
     crossword = Crossword()
     crossword.type = "quick"
     crossword.number = 42
     self.assertEqual(crossword.url(), "/quick/42")