コード例 #1
0
ファイル: test_typecheck.py プロジェクト: fhirschmann/penchy
 def test_internal_inputs_not_statisfied(self):
     sink = Types(('bar', object), (':quux:', object))
     self.assertTrue(sink.check_sink([('foo', [('foo', 'bar')])]))
コード例 #2
0
ファイル: test_typecheck.py プロジェクト: fhirschmann/penchy
 def test_overwritten_input(self):
     sink = Types()
     self.assertFalse(sink.check_sink([('foo', [('foo', 'bar')]),
                                       ('baz', [('baz', 'bar')])]))
コード例 #3
0
ファイル: test_typecheck.py プロジェクト: fhirschmann/penchy
 def test_inputs_not_statisfied(self):
     sink = Types(('foo', object))
     self.assertFalse(sink.check_sink([('foo', [('foo', 'bar'), ('baz', 'quux')])]))
コード例 #4
0
ファイル: test_typecheck.py プロジェクト: fhirschmann/penchy
 def test_valid_input(self):
     sink = Types()
     self.assertTrue(sink.check_sink([('foo', [('foo', 'bar')]),
                                      ('baz', [('baz', 'bad')])]))