def test_write_pattern_file_does_not_raise(): temporary_file = flexmock(name='filename', write=lambda mode: None, flush=lambda: None) flexmock(module.tempfile).should_receive('NamedTemporaryFile').and_return( temporary_file) module._write_pattern_file(['exclude'])
def test_write_pattern_file_with_empty_exclude_patterns_does_not_raise(): module._write_pattern_file([])