old_contents: # coding=utf-8
  
  import sys
  sys.path.insert(0, '../')
  import unittest
  from lib.singleton import Singleton
  
  
  class SingletonTestCase(unittest.TestCase):
  
      def test_singleton(self):
          a = Singleton()
          b = Singleton()
          self.assertEqual(id(a), id(b))
  
  
  if __name__ == '__main__':
      unittest.main()
  
new_contents: # coding=utf-8
  
  import sys
  sys.path.insert(0, '../')
  import unittest
  from lib.singleton import Singleton
  
  
  class SingletonTestCase(unittest.TestCase):
  
      def test_singleton(self):
          a = Singleton()
          b = Singleton()
          self.assertEqual(id(a), id(b))
          c = Singleton()
          self.assertEqual(id(c), id(b))
  
  
  if __name__ == '__main__':
      unittest.main()
  
subject: update test for singleton