示例#1
0
 def test_creating_type_is_type(self):
     t = tag('footype', 42)
     assert_true(is_type(t))
示例#2
0
 def test_false(self):
     assert_false(value_of(tag('bool', False)))
示例#3
0
 def test_getting_type_of_type(self):
     t = tag('footype', 42)
     assert_equals('footype', type_of(t))
示例#4
0
 def test_true(self):
     assert_true(value_of(tag('bool', True)))
示例#5
0
 def test_getting_value_of_type(self):
     t = tag('footype', 42)
     assert_equals(42, value_of(t))