Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tests/cluecode/test_copyrights_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ def test_prepare_text_line(self):
result = copyrights.prepare_text_line(cp)
assert result == 'test (c) all rights reserved'

def test_invaild_copyright(self):
cp = '[C] The Regents of the University of Michigan'
result = copyrights.prepare_text_line(cp)
assert result == 'Copyright (C) The Regents of the University of Michigan'

def test_invaild_copyright_insensitivity(self):
cp = '[c] The Regents of the University of Michigan and Merit Network, Inc. 1992,'
result = copyrights.prepare_text_line(cp)
assert result == '(c) The Regents of the University of Michigan and Merit Network, Inc. 1992,'

def test_prepare_text_line_debian(self):
cp = 'Parts Copyright (c) 1992 <s>Uri Blumentha<s>l, I</s>BM</s>'
result = copyrights.prepare_text_line(cp)
Expand Down