@@ -518,7 +518,7 @@ def test_copyright_chameleon_assembly(self):
518518 def test_copyright_co_cust (self ):
519519 test_file = self .get_test_loc ('copyrights/copyright_co_cust-copyright_java.java' )
520520 expected = [
521- 'Copyright (c) 2009 Company Customer Identity Hidden' ,
521+ 'Copyright (c) 2009 <p> Company Customer Identity Hidden' ,
522522 ]
523523 check_detection (expected , test_file )
524524
@@ -3441,7 +3441,7 @@ def test_copyright_regents_complex(self):
34413441 ]
34423442 check_detection (expected , test_file )
34433443
3444- @expectedFailure
3444+ # @expectedFailure
34453445 def test_copyright_regents_license (self ):
34463446 test_file = self .get_test_loc ('copyrights/copyright_regents_license-LICENSE' )
34473447 expected = [
@@ -4072,24 +4072,14 @@ def test_copyright_rim(self):
40724072 check_detection (expected , test_lines )
40734073
40744074 def test_copyright_sinica (self ):
4075- test_lines = ['''
4076- # Copyright (c) 1999 Computer Systems and Communication Lab,
4077- # Institute of Information Science, Academia Sinica.
4078-
4079- some junk
4080- ''' ]
4081- expected = ['Copyright (c) 1999 Computer Systems' ]
4082- check_detection (expected , test_lines )
4083-
4084- @expectedFailure
4085- def test_copyright_sinica_correct (self ):
4086- test_lines = ['''
4075+ test_lines = '''
40874076 # Copyright (c) 1999 Computer Systems and Communication Lab,
40884077 # Institute of Information Science, Academia Sinica.
40894078
40904079 some junk
4091- ''' ]
4080+ ''' . splitlines ()
40924081 expected = ['Copyright (c) 1999 Computer Systems and Communication Lab, Institute of Information Science, Academia Sinica.' ]
4082+
40934083 check_detection (expected , test_lines )
40944084
40954085 def test_copyright_copr1 (self ):
@@ -4203,3 +4193,29 @@ def test_copyright_word_in_html(self):
42034193 u'Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies)' ,
42044194 ]
42054195 check_detection (expected , test_lines )
4196+
4197+ def test_copyright_with_date_in_angle_brackets (self ):
4198+ test_lines = '''
4199+ * Copyright (C) <2013>, GENIVI Alliance, Inc.
4200+ 4201+ ''' .splitlines (False )
4202+ expected = [
4203+ u'Copyright (c) <2013> , GENIVI Alliance, Inc.' ,
4204+ ]
4205+ check_detection (expected , test_lines , what = 'copyrights' )
4206+ expected = [
4207+ 4208+ ]
4209+ check_detection (expected , test_lines , what = 'authors' )
4210+
4211+ def test_copyright_with_zoo (self ):
4212+ test_lines = '''
4213+ * Download Upload Messaging Manager
4214+ *
4215+ * Copyright (C) 2012-2013 Open-RnD Sp. z o.o. All rights reserved.
4216+ * @verbatim
4217+ ''' .splitlines (False )
4218+ expected = [
4219+ u'Copyright (c) 2012-2013 Open-RnD Sp.' ,
4220+ ]
4221+ check_detection (expected , test_lines , what = 'copyrights' )
0 commit comments