commit 2e1371a13205cd494dc4b9ade79ae20b607256b1
Author: Bhuvan Arumugam <email address hidden>
Date: Sun May 6 15:13:44 2012 -0700
Tests to cover various mailmap formats.
Bug: 994957
Mailmap might include entries in different format:
Full Name <email address hidden> Full Name <email address hidden>
Firstname <email address hidden> Firstname <email address hidden>
<email address hidden> <email address hidden>
This commit adds a test case to parse these entries.
* tests/unit/test_setup.py
Remove unused imports.
Import os and setup methods to verify.
SetupTest: Define unique test case name.
setUp(): New method to define temporary mailmap file.
tearDown(): New method to remove the temporary mailmap file.
test_mailmap_with_fullname(): New method to test mailmap entry
with fullname.
test_mailmap_with_firstname(): New method to test mailmap entry
with first name only.
test_mailmap_with_noname(): New method to test mailmap entry with
just email addresses.
Reviewed: https:/ /review. openstack. org/7174 github. com/openstack/ openstack- common/ commit/ 2e1371a13205cd4 94dc4b9ade79ae2 0b607256b1
Committed: http://
Submitter: Jenkins
Branch: master
commit 2e1371a13205cd4 94dc4b9ade79ae2 0b607256b1
Author: Bhuvan Arumugam <email address hidden>
Date: Sun May 6 15:13:44 2012 -0700
Tests to cover various mailmap formats.
Bug: 994957
Mailmap might include entries in different format:
Full Name <email address hidden> Full Name <email address hidden>
Firstname <email address hidden> Firstname <email address hidden>
<email address hidden> <email address hidden>
This commit adds a test case to parse these entries.
* tests/unit/ test_setup. py
Remove unused imports.
Import os and setup methods to verify.
SetupTest: Define unique test case name. mailmap_ with_fullname( ): New method to test mailmap entry mailmap_ with_firstname( ): New method to test mailmap entry mailmap_ with_noname( ): New method to test mailmap entry with
setUp(): New method to define temporary mailmap file.
tearDown(): New method to remove the temporary mailmap file.
test_
with fullname.
test_
with first name only.
test_
just email addresses.
Change-Id: Icc018d4b2692ce 7a7de757f02d1dd 49241c30a6c