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()
1348 new_zoo = pickle.loads(pickled_zoo)1349 self.assertEqual(sorted(new_zoo.__dict__.keys()), sorted_resource_keys)1350 self.assertTrue(hasattr(new_zoo, 'animals'))1351 self.assertTrue(callable(new_zoo.animals))1352 self.assertTrue(hasattr(new_zoo, 'global_'))1353 self.assertTrue(callable(new_zoo.global_))1354 self.assertTrue(hasattr(new_zoo, 'load'))1355 self.assertTrue(callable(new_zoo.load))1356 self.assertTrue(hasattr(new_zoo, 'loadNoTemplate'))1357 self.assertTrue(callable(new_zoo.loadNoTemplate))[all …]