Ejemplo n.º 1
0
    def test_loading_and_deletion_of_demo_explorations(self):
        """Test loading and deletion of the demo explorations."""
        self.assertEqual(exp_services.count_explorations(), 0)

        exp_services.load_demos()
        self.assertEqual(exp_services.count_explorations(), 7)

        exp_services.delete_demos()
        self.assertEqual(exp_services.count_explorations(), 0)
Ejemplo n.º 2
0
def reload_explorations():
    """Reload the default explorations."""
    exp_services.delete_demos()
    exp_services.load_demos()