new_contents: import time
  
  import pytest
  
  from flexmock import flexmock
  
  from pyp2rpmlib.package_data import *
  
  class TestPackageData(object):
      @pytest.mark.parametrize(('s', 'expected'), [
              ('Spam.', 'Spam'),
              ('Spam', 'Spam'),
      ])
      def test_summary_with_dot(self, s, expected):
          pd = PackageData('spam', 'spam', 'spam')
          pd.summary = s
          assert pd.summary == expected
  
      def test_get_nonexistent_attribute(self):
          pd = PackageData('spam', 'spam', 'spam')
          assert pd.eggs == 'TODO:'
  
subject: Test PackageData