Beispiel #1
0
 def test_init(self):
     ast = AST()
     data = list(reversed([(0, 0), (1, 2), (2, 4), (3, 6), (4, 8),
                           (5, 10)]))
     for k, v in data:
         ast[k] = v
     self.assertEqual(data, list(ast.items()))
Beispiel #2
0
 def test_init(self):
     ast = AST()
     data = list(reversed(
         [(0, 0), (1, 2), (2, 4), (3, 6), (4, 8), (5, 10)]
     ))
     for k, v in data:
         ast[k] = v
     self.assertEquals(data, list(ast.items()))
Beispiel #3
0
 def test_ast(self):
     ast = AST()
     self.assertEqual([], list(ast.items()))
     self.assertTrue(hasattr(ast, '__json__'))
Beispiel #4
0
 def test_ast(self):
     ast = AST()
     self.assertEquals([], list(ast.items()))
     self.assertTrue(hasattr(ast, '__json__'))