Comment 5 for bug 994957

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-common (master)

Reviewed: https://review.openstack.org/7174
Committed: http://github.com/openstack/openstack-common/commit/2e1371a13205cd494dc4b9ade79ae20b607256b1
Submitter: Jenkins
Branch: master

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.

    Change-Id: Icc018d4b2692ce7a7de757f02d1dd49241c30a6c