Exemple #1
0
    def should_find_files_by_pattern_matching(self):
        env.writefile('lol.foo', 'lol')
        first_checksum = checksum_recursively(TEST_OUTPUT_DIR, pattern='*.foo')
        env.writefile('lol.foo', 'lol\nlol again')
        second_checksum = checksum_recursively(TEST_OUTPUT_DIR, pattern='*.foo')

        first_checksum |should_be.less_than| second_checksum
Exemple #2
0
    def should_find_python_files_in_dir(self):
        env.writefile('lol.py', 'lol')
        first_checksum = checksum_recursively(TEST_OUTPUT_DIR, pattern='*.py')
        env.writefile('lol.py', 'lol\nlol again')
        second_checksum = checksum_recursively(TEST_OUTPUT_DIR, pattern='*.py')

        first_checksum |should_be.less_than| second_checksum
Exemple #3
0
    def should_find_python_files_in_subdirs(self):
        env.mkdir('foo')
        env.mkdir('foo/bar')
        foo_path = os.path.join(TEST_OUTPUT_DIR, 'foo')
        env.writefile('foo/bar/lol.py', 'lol')
        first_checksum = checksum_recursively(foo_path, pattern='*.py')
        env.writefile('foo/bar/lol.py', 'lol\nlol again')
        second_checksum = checksum_recursively(foo_path, pattern='*.py')

        first_checksum |should_be.less_than| second_checksum
Exemple #4
0
 def should_find_files_by_relative_paths(self):
     env.writefile('lol.foo', 'lol')
     first_checksum = checksum_recursively('tests/test-output', pattern='*.foo')
     env.writefile('lol.foo', 'lol\nlol again')
     second_checksum = checksum_recursively(TEST_OUTPUT_DIR, pattern='*.foo')