예제 #1
0
파일: test_utils.py 프로젝트: wenlf/manila
 def test_do_nothing_caller(self):
     """Test calling the object will always return the same instance."""
     donothing = utils.DoNothing()
     self.assertIs(donothing, donothing())
예제 #2
0
파일: test_utils.py 프로젝트: wenlf/manila
 def test_do_nothing_json_serializable(self):
     """Test calling the object will always return the same instance."""
     donothing = utils.DoNothing()
     self.assertEqual('""', json.dumps(donothing))
예제 #3
0
파일: test_utils.py 프로젝트: wenlf/manila
 def test_do_nothing_getter(self):
     """Test any attribute will always return the same instance (self)."""
     donothing = utils.DoNothing()
     self.assertIs(donothing, donothing.anyname)