Searched refs:new_zoo (Results 1 – 2 of 2) sorted by relevance
92 zoo_t new_zoo; in zoo_open() local94 new_zoo = (zoo_t) fopen(zooname, "r+"); in zoo_open()95 if (!new_zoo) { in zoo_open()98 new_zoo = (zoo_t) fopen(zooname, "a+"); in zoo_open()99 if (!new_zoo) { in zoo_open()106 fclose(new_zoo); in zoo_open()107 new_zoo = fopen(zooname, "r+"); in zoo_open()114 return new_zoo; in zoo_open()
1351 new_zoo = pickle.loads(pickled_zoo)1352 self.assertEqual(sorted(new_zoo.__dict__.keys()), sorted_resource_keys)1353 self.assertTrue(hasattr(new_zoo, 'animals'))1354 self.assertTrue(callable(new_zoo.animals))1355 self.assertTrue(hasattr(new_zoo, 'global_'))1356 self.assertTrue(callable(new_zoo.global_))1357 self.assertTrue(hasattr(new_zoo, 'load'))1358 self.assertTrue(callable(new_zoo.load))1359 self.assertTrue(hasattr(new_zoo, 'loadNoTemplate'))1360 self.assertTrue(callable(new_zoo.loadNoTemplate))[all …]