|
17 | 17 | # then import transit stuff |
18 | 18 | from transit.reader import Reader, JsonUnmarshaler, MsgPackUnmarshaler |
19 | 19 | from transit.writer import Writer |
20 | | -from transit.transit_types import Keyword, Symbol, URI, frozendict, TaggedValue, Link |
| 20 | +from transit.transit_types import Keyword, Symbol, URI, frozendict, TaggedValue, Link, true, false |
21 | 21 | from StringIO import StringIO |
22 | 22 | from transit.helpers import mapcat |
23 | 23 | from helpers import ints_centered_on, hash_of_size, array_of_symbools |
@@ -96,7 +96,7 @@ def assertEqual(self, val, data): |
96 | 96 | globals()["test_" + name + "_json"] = ExemplarTest |
97 | 97 |
|
98 | 98 | ARRAY_SIMPLE = (1, 2, 3) |
99 | | -ARRAY_MIXED = (0, 1, 2.0, True, False, 'five', Keyword("six"), Symbol("seven"), '~eight', None) |
| 99 | +ARRAY_MIXED = (0, 1, 2.0, true, false, 'five', Keyword("six"), Symbol("seven"), '~eight', None) |
100 | 100 | ARRAY_NESTED = (ARRAY_SIMPLE, ARRAY_MIXED) |
101 | 101 | SMALL_STRINGS = ("", "a", "ab", "abc", "abcd", "abcde", "abcdef") |
102 | 102 | POWERS_OF_TWO = tuple(map(lambda x: pow(2, x), range(66))) |
@@ -131,14 +131,14 @@ def assertEqual(self, val, data): |
131 | 131 |
|
132 | 132 | MAP_MIXED = frozendict({Keyword("a"): 1, |
133 | 133 | Keyword("b"): u"a string", |
134 | | - Keyword("c"): True}) |
| 134 | + Keyword("c"): true}) |
135 | 135 |
|
136 | 136 | MAP_NESTED = frozendict({Keyword("simple"): MAP_SIMPLE, |
137 | 137 | Keyword("mixed"): MAP_MIXED}) |
138 | 138 |
|
139 | 139 | exemplar("nil", None) |
140 | | -exemplar("true", True) |
141 | | -exemplar("false", False) |
| 140 | +exemplar("true", true) |
| 141 | +exemplar("false", false) |
142 | 142 | exemplar("zero", 0) |
143 | 143 | exemplar("one", 1) |
144 | 144 | exemplar("one_string", "hello") |
|
0 commit comments