def testOtherFeatures(self):
     with os_environ(HTTP_COOKIE="session=7777"):
         actual = self._definition.sub_page('other-features', '7777',
                                            mock_validation())
         expected = load_subpage("other-features")
         self.assertEqual(remove_empty_lines(actual),
                          remove_empty_lines(expected))
 def testSententialNegation(self):
     with os_environ(HTTP_COOKIE="session=7777"):
         actual = self._definition.sub_page('sentential-negation', '7777',
                                            mock_validation())
         expected = load_subpage("sentential-negation")
         self.assertEqual(remove_empty_lines(actual),
                          remove_empty_lines(expected))
 def testNumber(self):
     with os_environ(HTTP_COOKIE="session=7777"):
         actual = self._definition.sub_page('number', '7777',
                                            mock_validation())
         expected = load_subpage("number")
         self.assertEqual(remove_empty_lines(actual),
                          remove_empty_lines(expected))
 def testDirectInverse(self):
     with os_environ(HTTP_COOKIE="session=7777"):
         actual = self._definition.sub_page('direct-inverse', '7777',
                                            mock_validation())
         expected = load_subpage("direct-inverse")
         self.assertEqual(remove_empty_lines(actual),
                          remove_empty_lines(expected))
 def testTAM(self):
     with os_environ(HTTP_COOKIE="session=7777"):
         actual = self._definition.sub_page('tense-aspect-mood', '7777',
                                            mock_validation())
         expected = load_subpage("TAM")
         self.assertEqual(remove_empty_lines(actual),
                          remove_empty_lines(expected))
 def testArgumentOptionality(self):
     with os_environ(HTTP_COOKIE="session=7777"):
         actual = self._definition.sub_page('arg-opt', '7777',
                                            mock_validation())
         expected = load_subpage("arg-opt")
         self.assertEqual(remove_empty_lines(actual),
                          remove_empty_lines(expected))
 def testInformationStructure(self):
     with os_environ(HTTP_COOKIE="session=7777"):
         actual = self._definition.sub_page('info-str', '7777',
                                            mock_validation())
         expected = load_subpage("info-str")
         self.assertEqual(remove_empty_lines(actual),
                          remove_empty_lines(expected))
 def testMatrixYesNo(self):
     with os_environ(HTTP_COOKIE="session=7777"):
         actual = self._definition.sub_page('matrix-yes-no', '7777',
                                            mock_validation())
         expected = load_subpage("matrix-yes-no")
         self.assertEqual(remove_empty_lines(actual),
                          remove_empty_lines(expected))
 def testLexicon_Choices2(self):
     with os_environ(HTTP_COOKIE="session=7777"), environ_choices(
             "lexicon_choices2.txt"):
         actual = self._definition.sub_page('lexicon', '7777',
                                            mock_validation())
         expected = load_subpage("lexicon_choices2")
         self.assertEqual(remove_empty_lines(actual),
                          remove_empty_lines(expected))