def generategeomorphdungeon():
    """Generate a geomorphdungeon"""

    features = feature_filter('geomorphdungeon')
    geomorphdungeon = GeomorphDungeon(app.server, features)
    return render_template('geomorphdungeon.html',
                           tempobj=geomorphdungeon,
                           jsondata=geomorphdungeon.simplify_for_json())
 def test_simplify_for_json(self):
     """  """
     geomorphdungeon = GeomorphDungeon(self.redis)
     json_structure=geomorphdungeon.simplify_for_json()
     self.assertEqual(type(json_structure), list)
     for row in json_structure:
         self.assertEqual(type(row), list)
         for tile in row:
             self.assertTrue(tile['path'])
             self.assertIn(tile['rotation'], [0,1,2,3])
 def test_Tile_creation(self):
         tile=GeomorphDungeon.Tile(5,9)
         self.assertEqual(tile.left,None)
         self.assertEqual(tile.right,None)
         self.assertEqual(tile.top,None)
         self.assertEqual(tile.bottom,None)
         self.assertEqual(tile.char,'#')
         self.assertEqual(tile.x,5)
         self.assertEqual(tile.y,9)
def generategeomorphdungeon():
    """Generate a geomorphdungeon"""

    features = feature_filter('geomorphdungeon')
    geomorphdungeon = GeomorphDungeon(app.server, features)
    return render_template('geomorphdungeon.html', tempobj=geomorphdungeon, jsondata=geomorphdungeon.simplify_for_json())
 def test_random_geomorphdungeon(self):
     """  """
     geomorphdungeon = GeomorphDungeon(self.redis)
     self.assertEqual('Lost Panopticon Of The King Of Chaos', str(geomorphdungeon))