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()))
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()))
def test_ast(self): ast = AST() self.assertEqual([], list(ast.items())) self.assertTrue(hasattr(ast, '__json__'))
def test_ast(self): ast = AST() self.assertEquals([], list(ast.items())) self.assertTrue(hasattr(ast, '__json__'))