def test_get_instance__runtime_error(self):
     del StatsService._instance
     with self.assertRaises(RuntimeError):
         StatsService.get_instance()
 def test_get_instance__ok(self):
     self.assertEqual(StatsService.get_instance(), self.stats_service)