Example #1
0
class MeepTestCase(TestCase):

    def setUp(self):
        from puzzles.meepmeep import Puzzle
        self.runner = Puzzle()

    def test_puzzle_runs(self):
        """
        Test case to ensure that the meep puzzle exists and runs.
        """
        self.runner.run("Just ignore me, I am not important")
        pass

    def test_outputs_meep(self):
        """
        Test case to ensure that print returns the right output.
        """
        result = self.runner.print_meep('Just ignore me, I am not important')
        assert that(result).equals('Meep meep!'), 'The output of the meep puzzle should always be Meep meep!'
Example #2
0
 def setUp(self):
     from puzzles.meepmeep import Puzzle
     self.runner = Puzzle()