Example #1
0
 def test_only_setuppy2(self):
     with helpers.use_example_dir('txt_to_rst3'):
         checker = txt_to_rst.Checker()
         commands = checker.suggested_commands()
         self.assertEquals(
             commands,
             ["grep txt setup.py"])
Example #2
0
 def test_suggested_commands(self):
     with helpers.use_example_dir('txt_to_rst1'):
         checker = txt_to_rst.Checker()
         commands = checker.suggested_commands()
         self.assertEquals(len(commands), 3)
         self.assertEquals(
             commands[0],
             "git mv CHANGES.txt CHANGES.rst")
Example #3
0
 def test_detects_problem1(self):
     with helpers.use_example_dir("gitignore1"):
         checker = gitignore.Checker()
         self.assertFalse(checker.looks_ok())
Example #4
0
 def test_suggested_commands2(self):
     with helpers.use_example_dir("gitignore2"):
         checker = gitignore.Checker()
         commands = checker.suggested_commands()
         self.assertEquals(len(commands), 1)
         self.assertTrue(commands[0].startswith("curl"))
Example #5
0
 def test_only_setuppy1(self):
     with helpers.use_example_dir('txt_to_rst3'):
         checker = txt_to_rst.Checker()
         self.assertFalse(checker.looks_ok())
Example #6
0
 def test_detects_problem2(self):
     with helpers.use_example_dir('txt_to_rst2'):
         checker = txt_to_rst.Checker()
         self.assertTrue(checker.looks_ok())