コード例 #1
0
 def test_format(self):
     """L{Enum.format} converts back the given value to the original map."""
     parameter = Enum("Test", {"foo": "bar"})
     self.assertEqual("foo", parameter.format("bar"))
コード例 #2
0
ファイル: test_schema.py プロジェクト: antisvin/txAWS
 def test_format(self):
     """L{Enum.format} converts back the given value to the original map."""
     parameter = Enum("Test", {"foo": "bar"})
     self.assertEqual("foo", parameter.format("bar"))