code: def test_server_empty_registration(self):
      cmd = self._cmd(self.dist)
      rc = cmd._get_rc_file()
      self.assertFalse(os.path.exists(rc))
      cmd._store_pypirc("tarek", "xxx")
      self.assertTrue(os.path.exists(rc))
      f = open(rc)
      try:
          content = f.read()
          self.assertEqual(content, WANTED)
      finally:
          f.close()
  
imports: import sys
  import os
  import unittest
  import tempfile
  import shutil
  from distutils.core import PyPIRCCommand
  from distutils.core import Distribution
  from distutils.log import set_threshold
  from distutils.log import WARN
  from distutils.tests import support
  from test.test_support import run_unittest
label_desc: Use image node_id 4 for calling the PyPIRCCommandTestCase obj's underlying member method code with example usage: obj.test_server_empty_registration() without return types