示例#1
0
    def test_ignore_file_two_files_comment(self):
        fdvcs = find_dvcs()
        content = """# Ignore these files
        foo.txt
        bar*
        spam.eggs
        """
        files = fdvcs.ignore_file(content)

        self.assertEqual(files, {'foo.txt', 'spam.eggs'})
示例#2
0
    def test_ignore_file_two_files_comment(self):
        fdvcs = find_dvcs()
        content = """# Ignore these files
        foo.txt
        bar*
        spam.eggs
        """
        files = fdvcs.ignore_file(content)

        self.assertEqual(files, set(['foo.txt', 'spam.eggs']))
示例#3
0
    def test_ignore_file_blank(self):
        fdvcs = find_dvcs()
        files = fdvcs.ignore_file('')

        self.assertEqual(files, set())
示例#4
0
 def test_get_desc_complex(self):
     p = find_dvcs()
     desc = p.get_desc()
     
     self.assertNotIn('author', desc)
示例#5
0
    def test_ignore_file_blank(self):
        fdvcs = find_dvcs()
        files = fdvcs.ignore_file('')

        self.assertEqual(files, set())