Ejemplo n.º 1
0
 def test(a: options('open', 'write')):
     return a
Ejemplo n.º 2
0
 def test(a: options('open', 'write')):
     return a
Ejemplo n.º 3
0
 def test_options(self):
     self.assertIsInstance('open', options('open', 'write'))
     self.assertIsInstance('write', options('open', 'write'))
     self.assertNotIsInstance('other', options('open', 'write'))
Ejemplo n.º 4
0
 def test_options(self):
     self.assertIsInstance('open', options('open', 'write'))
     self.assertIsInstance('write', options('open', 'write'))
     self.assertNotIsInstance('other', options('open', 'write'))