def test__compose_block_dict(self): c = Composer({}) block = c._build_block({ 'one': 'foo', 'two': 'bar', 'three': 'hello', 'four': { 'five': 'world', 'six': 'the', 'seven': 'world', 'eight': 'is' } }) self.assertEqual("""{ four = { eight = "is" five = "world" seven = "world" six = "the" } one = "foo" three = "hello" two = "bar" } """, block)
def test__compose_block(self): c = Composer({}) block = c._build_block({ 'one': 'foo', 'two': 'bar', 'three': 'hello', 'four': 'world' }) self.assertEqual("""{ four = "world" one = "foo" three = "hello" two = "bar" } """, block)