def test_get_properties_defined_in_class(self):
		'''Tests the private static method get_properties_defined_in_class'''
		post = PostTestEntity(parent=self.bill, title='a post'
							,posted_on = date(2010,1,1))		
		self.assertTrue(PrefetchingQuery._get_properties_defined_in_class(post) is None)
		
		self.assertTrue(len(PrefetchingQuery._get_properties_defined_in_class(self.admin))
					== 1)
	def test_automatically_find_refprops(self):
		'''Tests the _automatically_determine_refprops method in PrefetchingQuery'''
		
		post = PostTestEntity(parent=self.bill, title='a post'
							,posted_on = date(2010,1,1))
		refprops = PrefetchingQuery._automatically_determine_refprops(post)
		self.assertTrue(len(refprops) == 2) #parent + topic ref prop