Commit 0f9c76a9 authored by Ryan Pavlik's avatar Ryan Pavlik

Fix up filter tests

parent f8f20ec5
...@@ -80,8 +80,7 @@ distributed under the License is distributed on an "AS IS" BASIS, ...@@ -80,8 +80,7 @@ distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License.""" limitations under the License."""
expected = """ expected = """/*
/*
** Copyright (c) 2018 Collabora, Ltd. ** Copyright (c) 2018 Collabora, Ltd.
** **
** SPDX-License-Identifier: Apache-2.0 ** SPDX-License-Identifier: Apache-2.0
...@@ -97,10 +96,9 @@ expected = """ ...@@ -97,10 +96,9 @@ expected = """
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and ** See the License for the specific language governing permissions and
** limitations under the License. ** limitations under the License.
*/ */"""
"""
def test_real_text(): def test_real_text():
assert do_prefix_block(intext, line_prefix='** ', blank_line_prefix='**', block_begin='/*\n', block_end='\n*/') == expected eq_(do_prefix_block(intext, line_prefix='** ', blank_line_prefix='**', block_begin='/*\n', block_end='\n*/'), expected)
def test_identifier(): def test_identifier():
eq_(do_make_identifier('asdf'), 'asdf') eq_(do_make_identifier('asdf'), 'asdf')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment