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