@@ -0,0 +1,2175 @@
+import unittest%0Afrom source.scriptographer_desk import *%0A%0Aclass ScriptographerTestCase(unittest.TestCase):%0A%0A    def setUp(self):%0A        self.say = Scriptographer()%0A        self.start = %22Welcome to XOX, a Noughts and Crosses Game%22%0A        self.select = %22Type 1 to go first, or 2 to go second.%22%0A        self.tie = %22The game is a draw.%22%0A        self.computer = %22The Computer wins the game.%22%0A        self.human = %22You Win!%22%0A        self.question = %22Which square do you choose?%22%0A        self.bad_move = %22Sorry, that's not a legal move. Try again.%22%0A        self.nought = %22%5C033%5B34m O %5C033%5B0m%22%0A        self.cross = %22%5C033%5B91m X %5C033%5B0m%22%0A        self.before_num = %22%5C033%5B30m %22%0A        self.after_num = %22 %5C033%5B0m%22%0A        self.plank = '---'%0A        self.corner = '+'%0A        self.wall = '%7C'%0A%0A    def test_say_start_of_game(self):%0A        self.assertEqual(self.say.start, self.start)%0A%0A    def test_say_select_go_first_or_not(self):%0A        self.assertEqual(self.say.select, self.select)%0A%0A    def test_say_game_over_tie(self):%0A        self.assertEqual(self.say.tie, self.tie)%0A%0A    def test_say_game_over_computer_wins(self):%0A        self.assertEqual(self.say.computer, self.computer)%0A%0A    def test_say_game_over_human_wins(self):%0A        self.assertEqual(self.say.human, self.human)%0A%0A    def test_say_question_the_human(self):%0A        self.assertEqual(self.say.question, self.question)%0A%0A    def test_say_human_made_illegal_move(self):%0A        self.assertEqual(self.say.bad_move, self.bad_move)%0A%0A    def test_provide_nought(self):%0A        self.assertEqual(self.say.nought, self.nought)%0A%0A    def test_provide_cross(self):%0A        self.assertEqual(self.say.cross, self.cross)%0A%0A    def test_provide_before_num(self):%0A        self.assertEqual(self.say.before_num, self.before_num)%0A%0A    def test_provide_after_num(self):%0A        self.assertEqual(self.say.after_num, self.after_num)%0A%0A    def test_provide_plank(self):%0A        self.assertEqual(self.say.plank, self.plank)%0A%0A    def test_provide_corner(self):%0A        self.assertEqual(self.say.corner, self.corner)%0A%0A    def test_provide_wall(self):%0A        self.assertEqual(self.say.wall, self.wall)%0A%0Aif __name__ == '__main__':%0A    unittest.main()%0A

test new scriptographer class where resources go