def test(self):
		s = self.session

		# Drop/Create tables.
		sa_metadata.metadata.drop_all(s.bind)
		sa_metadata.metadata.create_all(s.bind)
		s.commit()
		
		# Generate test effort set.
		effort_sets = fishing_util.generate_effort_sets(2)

		# Add to the session and commit.
		for es in effort_sets:
			s.add(es)
			s.commit()

		fetched_es = s.query(Effort_Set).all()

		efforts_for_es0 = s.query(Effort).join(Effort_Set.efforts).filter(Effort_Set.id == fetched_es[0].id).all()

		self.failUnless(True)
	def __init__(self, num_effort_sets=2, efforts_per_set=10):
		self.effort_sets = fishing_util.generate_effort_sets(num_effort_sets, efforts_per_set)